<86>Sep 14 13:10:34 userdel[505661]: delete user 'rooter' <86>Sep 14 13:10:34 userdel[505661]: removed group 'rooter' owned by 'rooter' <86>Sep 14 13:10:34 userdel[505661]: removed shadow group 'rooter' owned by 'rooter' <86>Sep 14 13:10:34 groupadd[505666]: group added to /etc/group: name=rooter, GID=618 <86>Sep 14 13:10:34 groupadd[505666]: group added to /etc/gshadow: name=rooter <86>Sep 14 13:10:34 groupadd[505666]: new group: name=rooter, GID=618 <86>Sep 14 13:10:34 useradd[505670]: new user: name=rooter, UID=618, GID=618, home=/root, shell=/bin/bash <86>Sep 14 13:10:34 userdel[505676]: delete user 'builder' <86>Sep 14 13:10:34 userdel[505676]: removed group 'builder' owned by 'builder' <86>Sep 14 13:10:34 userdel[505676]: removed shadow group 'builder' owned by 'builder' <86>Sep 14 13:10:34 groupadd[505681]: group added to /etc/group: name=builder, GID=619 <86>Sep 14 13:10:34 groupadd[505681]: group added to /etc/gshadow: name=builder <86>Sep 14 13:10:34 groupadd[505681]: new group: name=builder, GID=619 <86>Sep 14 13:10:34 useradd[505685]: new user: name=builder, UID=619, GID=619, home=/usr/src, shell=/bin/bash /usr/src/in/srpm/bash-completion-2.11-alt1.git.157.g59d2322e.src.rpm: license not found in '/usr/share/license' directory: GPL2 <13>Sep 14 13:10:36 rpmi: libgdbm-1.8.3-alt10 sisyphus+278100.1600.1.1 1626059138 installed <13>Sep 14 13:10:36 rpmi: libexpat-2.2.10-alt1 sisyphus+276608.100.1.2 1625153360 installed <13>Sep 14 13:10:36 rpmi: libp11-kit-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 13:10:36 rpmi: libtasn1-4.17.0-alt1 sisyphus+276722.100.1.1 1625211286 installed <13>Sep 14 13:10:36 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 13:10:36 rpmi: alternatives-0.5.1-alt1 sisyphus+278157.100.2.1 1626055790 installed <13>Sep 14 13:10:36 rpmi: ca-certificates-2021.06.03-alt1 sisyphus+273509.400.1.1 1622736045 installed <13>Sep 14 13:10:36 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Sep 14 13:10:37 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+278382.100.1.2 1626190687 installed <13>Sep 14 13:10:37 rpmi: libcrypto1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 13:10:37 rpmi: libssl1.1-1.1.1l-alt1 sisyphus+283685.100.1.1 1629816097 installed <13>Sep 14 13:10:37 rpmi: python3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 13:10:38 rpmi: python3-base-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 13:10:38 rpmi: libpython3-3.9.6-alt2 sisyphus+283178.100.2.1 1629243244 installed <13>Sep 14 13:10:38 rpmi: python3-module-iniconfig-1.1.1-alt1 sisyphus+270533.3400.6.1 1619684870 installed <13>Sep 14 13:10:38 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+275892.100.2.1 1624872742 installed <13>Sep 14 13:10:38 rpmi: python3-module-py-1.10.0-alt1 sisyphus+271297.460.4.1 1620386890 installed <13>Sep 14 13:10:38 rpmi: python3-module-toml-0.10.2-alt2 sisyphus+268468.100.2.1 1617010078 installed <13>Sep 14 13:10:38 rpmi: python3-module-pyparsing-2.4.7-alt1 sisyphus+277413.100.1.1 1625536142 installed <13>Sep 14 13:10:38 rpmi: python3-module-packaging-21.0-alt1 sisyphus+282740.100.1.1 1628983550 installed <13>Sep 14 13:10:38 rpmi: python3-module-attrs-21.2.0-alt1 sisyphus+273317.100.1.1 1622569791 installed <13>Sep 14 13:10:38 rpmi: python3-module-pluggy-1.0.0-alt1 sisyphus+284853.100.1.1 1631109373 installed <13>Sep 14 13:10:38 rpmi: python3-module-pytest-6.2.5-alt1 sisyphus+284853.200.2.1 1631178039 installed <13>Sep 14 13:10:38 rpmi: python3-module-ptyprocess-0.7.0-alt1 sisyphus+283469.100.1.1 1629400504 installed <13>Sep 14 13:10:38 rpmi: python3-module-pexpect-4.8.0-alt3 sisyphus+277018.100.2.2 1625339075 installed <13>Sep 14 13:10:38 rpmi: pytest3-6.2.5-alt1 sisyphus+284853.200.2.1 1631178039 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/bash-completion-2.11-alt1.git.157.g59d2322e.nosrc.rpm (w1.gzdio) Installing bash-completion-2.11-alt1.git.157.g59d2322e.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.45006 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf bash-completion-2.11 + echo 'Source #0 (bash-completion-2.11.tar):' Source #0 (bash-completion-2.11.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/bash-completion-2.11.tar + cd bash-completion-2.11 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (bash-completion-alt-iptables.patch):' Patch #1 (bash-completion-alt-iptables.patch): + /usr/bin/patch -p1 patching file completions/iptables + echo 'Patch #9 (bash-completion-alt-specific.patch):' Patch #9 (bash-completion-alt-specific.patch): + /usr/bin/patch -p1 patching file completions/apt-get patching file completions/aptitude patching file completions/rpm + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.45006 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd bash-completion-2.11 + autoreconf -fisv autoreconf-default: Entering directory `.' autoreconf-default: configure.ac: not using Gettext autoreconf-default: running: aclocal --force autoreconf-default: configure.ac: tracing autoreconf-default: configure.ac: not using Libtool autoreconf-default: configure.ac: not using Intltool autoreconf-default: configure.ac: not using gtk-doc autoreconf-default: running: /usr/bin/autoconf-2.60 --force autoreconf-default: configure.ac: not using Autoheader autoreconf-default: running: automake --add-missing --force-missing configure.ac:4: installing './install-sh' configure.ac:4: installing './missing' autoreconf-default: Leaving directory `.' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FFLAGS + FCFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export FCFLAGS + '[' -n '' ']' ++ printf %s '-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' + ASFLAGS=' -march=i586 -mtune=generic' + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + sort -u + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + xargs -ri dirname -- '{}' + readlink -e -- ./configure + ./configure --build=i586-alt-linux --host=i586-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --disable-silent-rules --without-included-gettext configure: WARNING: unrecognized options: --disable-dependency-tracking, --without-included-gettext checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for pytest... no checking for pytest-3... pytest-3 checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating completions/Makefile config.status: creating doc/Makefile config.status: creating helpers/Makefile config.status: creating test/Makefile config.status: creating test/t/Makefile config.status: creating test/t/unit/Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking, --without-included-gettext + make make: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' Making all in completions make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' ./../setup-symlinks.sh . 7z \ 7za ./../setup-symlinks.sh . aclocal \ aclocal-1.10 aclocal-1.11 aclocal-1.12 aclocal-1.13 \ aclocal-1.14 aclocal-1.15 aclocal-1.16 ./../setup-symlinks.sh . ant \ phing ./../setup-symlinks.sh . aptitude \ aptitude-curses ./../setup-symlinks.sh . asciidoc \ asciidoc.py ./../setup-symlinks.sh . automake \ automake-1.10 automake-1.11 automake-1.12 automake-1.13 \ automake-1.14 automake-1.15 automake-1.16 ./../setup-symlinks.sh . autoreconf \ autoheader ./../setup-symlinks.sh . autoscan \ autoupdate ./../setup-symlinks.sh . avahi-browse \ avahi-browse-domains ./../setup-symlinks.sh . btdownloadheadless.py \ btdownloadcurses.py btdownloadgui.py ./../setup-symlinks.sh . bzip2 \ lbzip2 pbzip2 ./../setup-symlinks.sh . _cal \ ncal ./../setup-symlinks.sh . cardctl \ pccardctl ./../setup-symlinks.sh . chromium-browser \ chrome chromium google-chrome google-chrome-stable ./../setup-symlinks.sh . complete \ compgen ./../setup-symlinks.sh . convert \ animate compare composite conjure display identify import \ mogrify montage stream ./../setup-symlinks.sh . cowsay \ cowthink ./../setup-symlinks.sh . declare \ typeset ./../setup-symlinks.sh . dict \ rdict ./../setup-symlinks.sh . dpkg \ dpkg-deb dpkg-query dpkg-reconfigure ./../setup-symlinks.sh . ether-wake \ etherwake ./../setup-symlinks.sh . filesnarf \ mailsnarf msgsnarf ./../setup-symlinks.sh . firefox \ firefox-esr iceweasel mozilla-firefox ./../setup-symlinks.sh . freeciv \ civclient freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw ./../setup-symlinks.sh . freeciv-server \ civserver ./../setup-symlinks.sh . gcc \ c++ cc f77 f95 g++ g++-5 g++-6 g++-7 g++-8 g77 g95 gcc-5 \ gcc-6 gcc-7 gcc-8 gccgo gccgo-5 gccgo-6 gccgo-7 gccgo-8 gcj \ gfortran gfortran-5 gfortran-6 gfortran-7 gfortran-8 gpc ./../setup-symlinks.sh . genisoimage \ mkisofs ./../setup-symlinks.sh . geoiplookup \ geoiplookup6 ./../setup-symlinks.sh . gkrellm \ gkrellm2 ./../setup-symlinks.sh . gpgv \ gpgv2 ./../setup-symlinks.sh . gzip \ pigz ./../setup-symlinks.sh . hcitool \ ciptool dfutool hciattach hciconfig l2ping rfcomm sdptool ./../setup-symlinks.sh . _hexdump \ hd ./../setup-symlinks.sh . hping2 \ hping hping3 ./../setup-symlinks.sh . ifup \ ifdown ifquery ifstatus ./../setup-symlinks.sh . info \ pinfo ./../setup-symlinks.sh . inotifywait \ inotifywatch ./../setup-symlinks.sh . insmod \ insmod.static ./../setup-symlinks.sh . iperf \ iperf3 ./../setup-symlinks.sh . java \ javac javadoc ./../setup-symlinks.sh . koji \ arm-koji ppc-koji s390-koji sparc-koji ./../setup-symlinks.sh . ldapsearch \ ldapadd ldapcompare ldapdelete ldapmodify ldapmodrdn \ ldappasswd ldapwhoami ./../setup-symlinks.sh . links \ links2 ./../setup-symlinks.sh . lintian \ lintian-info ./../setup-symlinks.sh . lua \ lua50 lua5.0 lua51 lua5.1 lua52 lua5.2 lua53 lua5.3 lua54 \ lua5.4 ./../setup-symlinks.sh . luac \ luac50 luac5.0 luac51 luac5.1 luac52 luac5.2 luac53 luac5.3 \ luac54 luac5.4 ./../setup-symlinks.sh . luseradd \ lusermod ./../setup-symlinks.sh . lvm \ lvchange lvcreate lvdisplay lvextend lvmdiskscan lvreduce \ lvremove lvrename lvresize lvs lvscan pvchange pvcreate \ pvdisplay pvmove pvremove pvs pvscan vgcfgbackup vgcfgrestore \ vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend \ vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs \ vgscan vgsplit ./../setup-symlinks.sh . lz4 \ lz4c ./../setup-symlinks.sh . lzip \ clzip pdlzip plzip ./../setup-symlinks.sh . make \ bmake colormake gmake gnumake pmake ./../setup-symlinks.sh . man \ apropos whatis ./../setup-symlinks.sh . mcrypt \ mdecrypt ./../setup-symlinks.sh . mplayer \ gmplayer kplayer mencoder mplayer2 ./../setup-symlinks.sh . mutt \ muttng neomutt ./../setup-symlinks.sh . nslookup \ host ./../setup-symlinks.sh . p4 \ g4 ./../setup-symlinks.sh . perl \ perldoc ./../setup-symlinks.sh . pine \ alpine ./../setup-symlinks.sh . ping \ ping6 ./../setup-symlinks.sh . pkg-config \ pkgconf ./../setup-symlinks.sh . pkg_delete \ pkg_deinstall pkg_info ./../setup-symlinks.sh . pgrep \ pkill ./../setup-symlinks.sh . pm-hibernate \ pm-suspend pm-suspend-hybrid ./../setup-symlinks.sh . psql \ createdb createuser dropdb dropuser ./../setup-symlinks.sh . postmap \ postalias ./../setup-symlinks.sh . povray \ spovray xpovray ./../setup-symlinks.sh . puppet \ filebucket puppetca puppetd puppetdoc puppetmasterd puppetqd \ puppetrun ralsh ./../setup-symlinks.sh . pytest \ py.test py.test-2 py.test-3 pytest-2 pytest-3 ./../setup-symlinks.sh . pydoc \ pydoc3 ./../setup-symlinks.sh . pylint \ pylint-2 pylint-3 ./../setup-symlinks.sh . python \ micropython pypy pypy3 python2 python2.7 python3 python3.3 \ python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 \ python3.10 ./../setup-symlinks.sh . pyvenv \ pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 \ pyvenv-3.9 pyvenv-3.10 ./../setup-symlinks.sh . qdbus \ dcop ./../setup-symlinks.sh . qemu \ qemu-kvm qemu-system-i386 qemu-system-x86_64 ./../setup-symlinks.sh . quota \ edquota quotacheck quotaoff quotaon repquota setquota ./../setup-symlinks.sh . rcs \ ci co rcsdiff rlog ./../setup-symlinks.sh . rpm \ rpmbuild rpmbuild-md5 ./../setup-symlinks.sh . rpm2tgz \ rpm2targz rpm2txz ./../setup-symlinks.sh . smbclient \ smbcacls smbcquotas smbget smbpasswd smbtar smbtree ./../setup-symlinks.sh . sbcl \ sbcl-mt ./../setup-symlinks.sh . sha256sum \ md5sum shasum sha1sum sha224sum sha384sum sha512sum ./../setup-symlinks.sh . ssh \ autossh scp sftp sidedoor slogin ./../setup-symlinks.sh . sudo \ sudoedit ./../setup-symlinks.sh . tar \ bsdtar gtar star ./../setup-symlinks.sh . tracepath \ tracepath6 ./../setup-symlinks.sh . update-alternatives \ alternatives ./../setup-symlinks.sh . vipw \ vigr ./../setup-symlinks.sh . vncviewer \ tightvncviewer xvnc4viewer ./../setup-symlinks.sh . wine \ wine-development wine-stable \ wine64 wine64-development wine64-stable ./../setup-symlinks.sh . wodim \ cdrecord ./../setup-symlinks.sh . xz \ pxz ./../setup-symlinks.sh . ypmatch \ ypcat make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' Making all in doc make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' Making all in helpers make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' Making all in test make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' Making all in t make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' Making all in unit make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' /bin/mkdir -p tmp make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' /bin/sed \ -e 's|@prefix[@]|/usr|' \ -e 's|@datadir[@]|/usr/share|' \ -e 's|@sysconfdir[@]|/etc|' \ -e 's|@PACKAGE[@]|bash-completion|' \ -e 's|@VERSION[@]|2.11|' \ <./bash-completion-config.cmake.in >bash-completion-config.cmake /bin/sed \ -e 's|@prefix[@]|/usr|' \ -e 's|@datadir[@]|/usr/share|' \ -e 's|@sysconfdir[@]|/etc|' \ -e 's|@PACKAGE[@]|bash-completion|' \ -e 's|@VERSION[@]|2.11|' \ <./bash-completion-config-version.cmake.in >bash-completion-config-version.cmake /bin/sed \ -e 's|@prefix[@]|/usr|' \ -e 's|@datadir[@]|/usr/share|' \ -e 's|@sysconfdir[@]|/etc|' \ -e 's|@PACKAGE[@]|bash-completion|' \ -e 's|@VERSION[@]|2.11|' \ <./bash-completion.pc.in >bash-completion.pc /bin/sed \ -e 's|@prefix[@]|/usr|' \ -e 's|@datadir[@]|/usr/share|' \ -e 's|@sysconfdir[@]|/etc|' \ -e 's|@PACKAGE[@]|bash-completion|' \ -e 's|@VERSION[@]|2.11|' \ <./bash_completion.sh.in >bash_completion.sh make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' make: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.98971 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/bash-completion-buildroot + : + /bin/rm -rf -- /usr/src/tmp/bash-completion-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd bash-completion-2.11 + make 'INSTALL=/usr/libexec/rpm-build/install -p' install DESTDIR=/usr/src/tmp/bash-completion-buildroot make: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' Making install in completions make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' ./../setup-symlinks.sh . 7z \ 7za ./../setup-symlinks.sh . aclocal \ aclocal-1.10 aclocal-1.11 aclocal-1.12 aclocal-1.13 \ aclocal-1.14 aclocal-1.15 aclocal-1.16 ./../setup-symlinks.sh . ant \ phing ./../setup-symlinks.sh . aptitude \ aptitude-curses ./../setup-symlinks.sh . asciidoc \ asciidoc.py ./../setup-symlinks.sh . automake \ automake-1.10 automake-1.11 automake-1.12 automake-1.13 \ automake-1.14 automake-1.15 automake-1.16 ./../setup-symlinks.sh . autoreconf \ autoheader ./../setup-symlinks.sh . autoscan \ autoupdate ./../setup-symlinks.sh . avahi-browse \ avahi-browse-domains ./../setup-symlinks.sh . btdownloadheadless.py \ btdownloadcurses.py btdownloadgui.py ./../setup-symlinks.sh . bzip2 \ lbzip2 pbzip2 ./../setup-symlinks.sh . _cal \ ncal ./../setup-symlinks.sh . cardctl \ pccardctl ./../setup-symlinks.sh . chromium-browser \ chrome chromium google-chrome google-chrome-stable ./../setup-symlinks.sh . complete \ compgen ./../setup-symlinks.sh . convert \ animate compare composite conjure display identify import \ mogrify montage stream ./../setup-symlinks.sh . cowsay \ cowthink ./../setup-symlinks.sh . declare \ typeset ./../setup-symlinks.sh . dict \ rdict ./../setup-symlinks.sh . dpkg \ dpkg-deb dpkg-query dpkg-reconfigure ./../setup-symlinks.sh . ether-wake \ etherwake ./../setup-symlinks.sh . filesnarf \ mailsnarf msgsnarf ./../setup-symlinks.sh . firefox \ firefox-esr iceweasel mozilla-firefox ./../setup-symlinks.sh . freeciv \ civclient freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw ./../setup-symlinks.sh . freeciv-server \ civserver ./../setup-symlinks.sh . gcc \ c++ cc f77 f95 g++ g++-5 g++-6 g++-7 g++-8 g77 g95 gcc-5 \ gcc-6 gcc-7 gcc-8 gccgo gccgo-5 gccgo-6 gccgo-7 gccgo-8 gcj \ gfortran gfortran-5 gfortran-6 gfortran-7 gfortran-8 gpc ./../setup-symlinks.sh . genisoimage \ mkisofs ./../setup-symlinks.sh . geoiplookup \ geoiplookup6 ./../setup-symlinks.sh . gkrellm \ gkrellm2 ./../setup-symlinks.sh . gpgv \ gpgv2 ./../setup-symlinks.sh . gzip \ pigz ./../setup-symlinks.sh . hcitool \ ciptool dfutool hciattach hciconfig l2ping rfcomm sdptool ./../setup-symlinks.sh . _hexdump \ hd ./../setup-symlinks.sh . hping2 \ hping hping3 ./../setup-symlinks.sh . ifup \ ifdown ifquery ifstatus ./../setup-symlinks.sh . info \ pinfo ./../setup-symlinks.sh . inotifywait \ inotifywatch ./../setup-symlinks.sh . insmod \ insmod.static ./../setup-symlinks.sh . iperf \ iperf3 ./../setup-symlinks.sh . java \ javac javadoc ./../setup-symlinks.sh . koji \ arm-koji ppc-koji s390-koji sparc-koji ./../setup-symlinks.sh . ldapsearch \ ldapadd ldapcompare ldapdelete ldapmodify ldapmodrdn \ ldappasswd ldapwhoami ./../setup-symlinks.sh . links \ links2 ./../setup-symlinks.sh . lintian \ lintian-info ./../setup-symlinks.sh . lua \ lua50 lua5.0 lua51 lua5.1 lua52 lua5.2 lua53 lua5.3 lua54 \ lua5.4 ./../setup-symlinks.sh . luac \ luac50 luac5.0 luac51 luac5.1 luac52 luac5.2 luac53 luac5.3 \ luac54 luac5.4 ./../setup-symlinks.sh . luseradd \ lusermod ./../setup-symlinks.sh . lvm \ lvchange lvcreate lvdisplay lvextend lvmdiskscan lvreduce \ lvremove lvrename lvresize lvs lvscan pvchange pvcreate \ pvdisplay pvmove pvremove pvs pvscan vgcfgbackup vgcfgrestore \ vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend \ vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs \ vgscan vgsplit ./../setup-symlinks.sh . lz4 \ lz4c ./../setup-symlinks.sh . lzip \ clzip pdlzip plzip ./../setup-symlinks.sh . make \ bmake colormake gmake gnumake pmake ./../setup-symlinks.sh . man \ apropos whatis ./../setup-symlinks.sh . mcrypt \ mdecrypt ./../setup-symlinks.sh . mplayer \ gmplayer kplayer mencoder mplayer2 ./../setup-symlinks.sh . mutt \ muttng neomutt ./../setup-symlinks.sh . nslookup \ host ./../setup-symlinks.sh . p4 \ g4 ./../setup-symlinks.sh . perl \ perldoc ./../setup-symlinks.sh . pine \ alpine ./../setup-symlinks.sh . ping \ ping6 ./../setup-symlinks.sh . pkg-config \ pkgconf ./../setup-symlinks.sh . pkg_delete \ pkg_deinstall pkg_info ./../setup-symlinks.sh . pgrep \ pkill ./../setup-symlinks.sh . pm-hibernate \ pm-suspend pm-suspend-hybrid ./../setup-symlinks.sh . psql \ createdb createuser dropdb dropuser ./../setup-symlinks.sh . postmap \ postalias ./../setup-symlinks.sh . povray \ spovray xpovray ./../setup-symlinks.sh . puppet \ filebucket puppetca puppetd puppetdoc puppetmasterd puppetqd \ puppetrun ralsh ./../setup-symlinks.sh . pytest \ py.test py.test-2 py.test-3 pytest-2 pytest-3 ./../setup-symlinks.sh . pydoc \ pydoc3 ./../setup-symlinks.sh . pylint \ pylint-2 pylint-3 ./../setup-symlinks.sh . python \ micropython pypy pypy3 python2 python2.7 python3 python3.3 \ python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 \ python3.10 ./../setup-symlinks.sh . pyvenv \ pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 \ pyvenv-3.9 pyvenv-3.10 ./../setup-symlinks.sh . qdbus \ dcop ./../setup-symlinks.sh . qemu \ qemu-kvm qemu-system-i386 qemu-system-x86_64 ./../setup-symlinks.sh . quota \ edquota quotacheck quotaoff quotaon repquota setquota ./../setup-symlinks.sh . rcs \ ci co rcsdiff rlog ./../setup-symlinks.sh . rpm \ rpmbuild rpmbuild-md5 ./../setup-symlinks.sh . rpm2tgz \ rpm2targz rpm2txz ./../setup-symlinks.sh . smbclient \ smbcacls smbcquotas smbget smbpasswd smbtar smbtree ./../setup-symlinks.sh . sbcl \ sbcl-mt ./../setup-symlinks.sh . sha256sum \ md5sum shasum sha1sum sha224sum sha384sum sha512sum ./../setup-symlinks.sh . ssh \ autossh scp sftp sidedoor slogin ./../setup-symlinks.sh . sudo \ sudoedit ./../setup-symlinks.sh . tar \ bsdtar gtar star ./../setup-symlinks.sh . tracepath \ tracepath6 ./../setup-symlinks.sh . update-alternatives \ alternatives ./../setup-symlinks.sh . vipw \ vigr ./../setup-symlinks.sh . vncviewer \ tightvncviewer xvnc4viewer ./../setup-symlinks.sh . wine \ wine-development wine-stable \ wine64 wine64-development wine64-stable ./../setup-symlinks.sh . wodim \ cdrecord ./../setup-symlinks.sh . xz \ pxz ./../setup-symlinks.sh . ypmatch \ ypcat make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 2to3 7z a2x abook aclocal acpi _adb add_members alias ant apache2ctl appdata-validate apt-build apt-cache apt-get apt-mark aptitude arch arp arping arpspoof asciidoc aspell autoconf automake autoreconf autorpm autoscan avahi-browse avctrl badblocks bind bk brctl btdownloadheadless.py bts bzip2 _cal cancel cardctl '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 carton ccache ccze cfagent cfrun chage change_pw check_db check_perms checksec _chfn chgrp chkconfig chmod chown chpasswd chromium-browser chronyc chrpath _chsh cksfv cleanarch clisp clone_member complete config_list configure convert cowsay cpan2dist cpio cppcheck crontab cryptsetup curl cvs cvsps dd deja-dup desktop-file-validate '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 dhclient dict _dmesg dmypy dnssec-keygen dnsspoof dot dpkg dpkg-source dselect dsniff dumpdb dumpe2fs e2freefrag e2label ebtables ecryptfs-migrate-home _eject eog ether-wake evince explodepkg export faillog fbgs fbi feh file file-roller filefrag filesnarf find find_member fio firefox flake8 freebsd-update freeciv freeciv-server function '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 fusermount gcc gcl gdb genaliases gendiff genisoimage geoiplookup getconf getent gkrellm gm gnatmake gnokii gnome-mplayer gnome-screenshot gpasswd gpg gpg2 gpgv gphoto2 gprof groupadd groupdel groupmems groupmod growisofs grpck gssdp-discover gzip hcitool hddtemp _hexdump hid2hci hostname hping2 htop htpasswd hunspell _hwclock '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 iconv id idn ifstat iftop ifup influx info inject inotifywait insmod installpkg interdiff invoke-rc.d _ionice ip ipcalc iperf ipmitool ipsec iptables ipv6calc iscsiadm isort isql iwconfig iwlist iwpriv iwspy jar jarsigner java javaws jq jpegoptim jps jshint json_xs jsonschema k3b '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 kcov kill killall kldload kldunload koji ktutil larch lastlog ldapsearch ldapvi lftp lftpget lilo links lintian lisp list_admins list_lists list_members list_owners _look locale-gen lpq lpr lrzip lsof lsscsi lsusb lua luac luseradd luserdel lvm lz4 lzip lzma lzop macof mailmanctl '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 make makepkg man mc mcrypt mdadm mdtool medusa mii-diag mii-tool minicom mkinitrd mktemp mmsitepass _mock modinfo modprobe _modules monodevelop _mount _mount.linux mplayer mr msynctool mtx munindoc munin-node-configure munin-run munin-update mussh mutt mypy mysql mysqladmin nc ncftp nethogs _newgrp newlist newusers '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 ngrep nmap _nmcli nproc nslookup nsupdate ntpdate oggdec op openssl opera optipng p4 pack200 passwd patch pdftotext perl perlcritic perltidy pgrep pidof pine ping pkg-config pkg-get pkg_delete pkgadd pkgrm pkgtool pkgutil plague-client pm-hibernate pm-is-supported pm-powersave pngfix portinstall portsnap portupgrade postcat '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 postconf postfix postmap postsuper povray prelink printenv protoc ps psql puppet pv pwck pwd pwdx pwgen pycodestyle pydoc pydocstyle pyflakes pylint pytest python pyvenv qdbus qemu qrunner querybts quota radvdump rcs rdesktop remove_members removepkg _renice _repomanage reportbug _reptyr resolvconf _rfkill '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 ri rmlist rmmod route rpcdebug rpm rpm2tgz rpmcheck rrdtool rsync _rtcwake _runuser sbcl sbopkg screen scrub secret-tool sh sha256sum shellcheck sitecopy slackpkg slapt-get slapt-src smartctl smbclient snownews sqlite3 ss ssh ssh-add ssh-copy-id ssh-keygen sshfs sshmitm sshow strace strings _su sudo '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 svcadm svk _svn _svnadmin _svnlook sync_members synclient sysbench sysctl tar tcpdump tcpkill tcpnice timeout tipc tox tracepath tshark tsig-keygen tune2fs _udevadm ulimit _umount _umount.linux unace unpack200 unrar unshunt update-alternatives update-rc.d upgradepkg urlsnarf useradd userdel usermod valgrind vipw vmstat vncviewer vpnc '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' /usr/libexec/rpm-build/install -p -m 644 watch webmitm wget wine withlist wodim wol _write wsimport wtf wvdial xdg-mime xdg-settings xfreerdp xgamma xhost _xm xmllint xmlwf xmms xmodmap xrandr xrdb xsltproc xvfb-run xxd xz xzdec ypmatch _yum yum-arch zopfli zopflipng '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions' make install-data-hook make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions 7z \ 7za ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions aclocal \ aclocal-1.10 aclocal-1.11 aclocal-1.12 aclocal-1.13 \ aclocal-1.14 aclocal-1.15 aclocal-1.16 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ant \ phing ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions aptitude \ aptitude-curses ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions asciidoc \ asciidoc.py ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions automake \ automake-1.10 automake-1.11 automake-1.12 automake-1.13 \ automake-1.14 automake-1.15 automake-1.16 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions autoreconf \ autoheader ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions autoscan \ autoupdate ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions avahi-browse \ avahi-browse-domains ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions btdownloadheadless.py \ btdownloadcurses.py btdownloadgui.py ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions bzip2 \ lbzip2 pbzip2 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions _cal \ ncal ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions cardctl \ pccardctl ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions chromium-browser \ chrome chromium google-chrome google-chrome-stable ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions complete \ compgen ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions convert \ animate compare composite conjure display identify import \ mogrify montage stream ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions cowsay \ cowthink ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions declare \ typeset ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions dict \ rdict ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions dpkg \ dpkg-deb dpkg-query dpkg-reconfigure ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ether-wake \ etherwake ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions filesnarf \ mailsnarf msgsnarf ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions firefox \ firefox-esr iceweasel mozilla-firefox ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions freeciv \ civclient freeciv-gtk2 freeciv-gtk3 freeciv-sdl freeciv-xaw ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions freeciv-server \ civserver ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions gcc \ c++ cc f77 f95 g++ g++-5 g++-6 g++-7 g++-8 g77 g95 gcc-5 \ gcc-6 gcc-7 gcc-8 gccgo gccgo-5 gccgo-6 gccgo-7 gccgo-8 gcj \ gfortran gfortran-5 gfortran-6 gfortran-7 gfortran-8 gpc ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions genisoimage \ mkisofs ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions geoiplookup \ geoiplookup6 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions gkrellm \ gkrellm2 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions gpgv \ gpgv2 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions gzip \ pigz ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions hcitool \ ciptool dfutool hciattach hciconfig l2ping rfcomm sdptool ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions _hexdump \ hd ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions hping2 \ hping hping3 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ifup \ ifdown ifquery ifstatus ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions info \ pinfo ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions inotifywait \ inotifywatch ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions insmod \ insmod.static ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions iperf \ iperf3 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions java \ javac javadoc ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions koji \ arm-koji ppc-koji s390-koji sparc-koji ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ldapsearch \ ldapadd ldapcompare ldapdelete ldapmodify ldapmodrdn \ ldappasswd ldapwhoami ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions links \ links2 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions lintian \ lintian-info ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions lua \ lua50 lua5.0 lua51 lua5.1 lua52 lua5.2 lua53 lua5.3 lua54 \ lua5.4 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions luac \ luac50 luac5.0 luac51 luac5.1 luac52 luac5.2 luac53 luac5.3 \ luac54 luac5.4 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions luseradd \ lusermod ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions lvm \ lvchange lvcreate lvdisplay lvextend lvmdiskscan lvreduce \ lvremove lvrename lvresize lvs lvscan pvchange pvcreate \ pvdisplay pvmove pvremove pvs pvscan vgcfgbackup vgcfgrestore \ vgchange vgck vgconvert vgcreate vgdisplay vgexport vgextend \ vgimport vgmerge vgmknodes vgreduce vgremove vgrename vgs \ vgscan vgsplit ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions lz4 \ lz4c ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions lzip \ clzip pdlzip plzip ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions make \ bmake colormake gmake gnumake pmake ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions man \ apropos whatis ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions mcrypt \ mdecrypt ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions mplayer \ gmplayer kplayer mencoder mplayer2 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions mutt \ muttng neomutt ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions nslookup \ host ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions p4 \ g4 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions perl \ perldoc ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pine \ alpine ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ping \ ping6 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pkg-config \ pkgconf ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pkg_delete \ pkg_deinstall pkg_info ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pgrep \ pkill ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pm-hibernate \ pm-suspend pm-suspend-hybrid ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions psql \ createdb createuser dropdb dropuser ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions postmap \ postalias ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions povray \ spovray xpovray ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions puppet \ filebucket puppetca puppetd puppetdoc puppetmasterd puppetqd \ puppetrun ralsh ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pytest \ py.test py.test-2 py.test-3 pytest-2 pytest-3 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pydoc \ pydoc3 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pylint \ pylint-2 pylint-3 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions python \ micropython pypy pypy3 python2 python2.7 python3 python3.3 \ python3.4 python3.5 python3.6 python3.7 python3.8 python3.9 \ python3.10 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions pyvenv \ pyvenv-3.4 pyvenv-3.5 pyvenv-3.6 pyvenv-3.7 pyvenv-3.8 \ pyvenv-3.9 pyvenv-3.10 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions qdbus \ dcop ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions qemu \ qemu-kvm qemu-system-i386 qemu-system-x86_64 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions quota \ edquota quotacheck quotaoff quotaon repquota setquota ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions rcs \ ci co rcsdiff rlog ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions rpm \ rpmbuild rpmbuild-md5 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions rpm2tgz \ rpm2targz rpm2txz ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions smbclient \ smbcacls smbcquotas smbget smbpasswd smbtar smbtree ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions sbcl \ sbcl-mt ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions sha256sum \ md5sum shasum sha1sum sha224sum sha384sum sha512sum ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ssh \ autossh scp sftp sidedoor slogin ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions sudo \ sudoedit ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions tar \ bsdtar gtar star ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions tracepath \ tracepath6 ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions update-alternatives \ alternatives ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions vipw \ vigr ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions vncviewer \ tightvncviewer xvnc4viewer ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions wine \ wine-development wine-stable \ wine64 wine64-development wine64-stable ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions wodim \ cdrecord ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions xz \ pxz ./../setup-symlinks.sh /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions ypmatch \ ypcat make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/completions' Making install in doc make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/doc' Making install in helpers make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/helpers' /usr/libexec/rpm-build/install -p -m 644 perl python '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/helpers' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/helpers' Making install in test make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' Making install in t make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' Making install in unit make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[4]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[4]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[4]: Nothing to be done for 'install-exec-am'. make[4]: Nothing to be done for 'install-data-am'. make[4]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/usr/share/cmake/bash-completion/' /usr/libexec/rpm-build/install -p -m 644 bash-completion-config.cmake bash-completion-config-version.cmake '/usr/src/tmp/bash-completion-buildroot/usr/share/cmake/bash-completion/' /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/usr/share/pkgconfig' /usr/libexec/rpm-build/install -p -m 644 bash-completion.pc '/usr/src/tmp/bash-completion-buildroot/usr/share/pkgconfig' /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion' /usr/libexec/rpm-build/install -p -m 644 bash_completion '/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion' /bin/mkdir -p '/usr/src/tmp/bash-completion-buildroot/etc/profile.d' /usr/libexec/rpm-build/install -p -m 644 bash_completion.sh '/usr/src/tmp/bash-completion-buildroot/etc/profile.d' make install-data-hook make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11' tmpfile=`mktemp ${TMPDIR:-/tmp}/bash_completion.XXXXXX` && \ /bin/sed -e 's|-/etc/bash_completion\.d|-/etc/bash_completion.d|' \ /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/bash_completion >$tmpfile && \ cat $tmpfile >/usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/bash_completion && \ rm $tmpfile make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' make: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11' + mv /usr/src/tmp/bash-completion-buildroot/etc/profile.d /usr/src/tmp/bash-completion-buildroot/etc/bashrc.d + mkdir -p /usr/src/tmp/bash-completion-buildroot/etc/bash_completion.d /usr/src/tmp/bash-completion-buildroot/usr/lib/rpm + install -p -m755 /usr/src/RPM/SOURCES/rpm-cache.filetrigger /usr/src/tmp/bash-completion-buildroot/usr/lib/rpm/ + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/bash-completion-buildroot (auto) Verifying and fixing files in /usr/src/tmp/bash-completion-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/bash-completion-buildroot/ (default) Compressing files in /usr/src/tmp/bash-completion-buildroot (auto) Adjusting library links in /usr/src/tmp/bash-completion-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/bash-completion-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.76583 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd bash-completion-2.11 + make -C test check make: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' Making check in t make[1]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' Making check in unit make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[2]: Nothing to be done for 'check'. make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t/unit' make[2]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make check-local make[3]: Entering directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' ABS_TOP_BUILDDIR="/usr/src/RPM/BUILD/bash-completion-2.11" \ pytest-3 . ============================= test session starts ============================== platform linux -- Python 3.9.6, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 rootdir: /usr/src/RPM/BUILD/bash-completion-2.11/test, configfile: setup.cfg collected 1685 items test_2to3.py EE [ 0%] test_7z.py EEEEEEE [ 0%] test_a2ps.py EE [ 0%] test_a2x.py EE [ 0%] test_abook.py E [ 0%] test_aclocal.py EE [ 0%] test_acpi.py E [ 1%] test_acroread.py E [ 1%] test_adb.py EE [ 1%] test_add_members.py E [ 1%] test_alias.py ExE [ 1%] test_alpine.py E [ 1%] test_animate.py E [ 1%] test_ant.py EEEEE [ 1%] test_apache2ctl.py E [ 1%] test_appdata_validate.py EE [ 2%] test_apt_build.py E [ 2%] test_apt_cache.py EEE [ 2%] test_apt_get.py EEE [ 2%] test_apt_mark.py EEEEE [ 2%] test_aptitude.py EEEEE [ 3%] test_arch.py E [ 3%] test_arp.py EE [ 3%] test_arping.py EE [ 3%] test_arpspoof.py E [ 3%] test_asciidoc.py EE [ 3%] test_aspell.py E [ 3%] test_autoconf.py E [ 3%] test_autoheader.py E [ 3%] test_automake.py EE [ 3%] test_autoreconf.py E [ 3%] test_autorpm.py E [ 3%] test_autoscan.py EE [ 4%] test_autossh.py E [ 4%] test_autoupdate.py E [ 4%] test_avahi_browse.py EEE [ 4%] test_avctrl.py E [ 4%] test_awk.py EE [ 4%] test_badblocks.py EE [ 4%] test_base64.py EE [ 4%] test_bash.py E [ 4%] test_bc.py E [ 4%] test_bind.py EE [ 4%] test_bison.py E [ 5%] test_bk.py E [ 5%] test_bmake.py E [ 5%] test_brctl.py E [ 5%] test_bsdtar.py EE [ 5%] test_btdownloadcurses_py.py E [ 5%] test_btdownloadgui_py.py E [ 5%] test_btdownloadheadless_py.py E [ 5%] test_bts.py EE [ 5%] test_bzip2.py EEE [ 5%] test_cal.py EE [ 5%] test_cancel.py E [ 5%] test_cardctl.py E [ 6%] test_carton.py EE [ 6%] test_cat.py EE [ 6%] test_cc.py E [ 6%] test_ccache.py EEEEEE [ 6%] test_ccze.py EEEE [ 6%] test_cd.py EEEEE [ 7%] test_cdrecord.py E [ 7%] test_cfagent.py E [ 7%] test_cfrun.py E [ 7%] test_chage.py EE [ 7%] test_change_pw.py E [ 7%] test_check_db.py E [ 7%] test_check_perms.py E [ 7%] test_checksec.py E [ 7%] test_chfn.py E [ 7%] test_chgrp.py E [ 7%] test_chkconfig.py EE [ 8%] test_chmod.py EEEEE [ 8%] test_chown.py xEEEEEEEEEEEEE [ 9%] test_chpasswd.py E [ 9%] test_chromium_browser.py EEEE [ 9%] test_chronyc.py EE [ 9%] test_chroot.py EEE [ 9%] test_chrpath.py EE [ 9%] test_chsh.py EEEE [ 10%] test_ci.py E [ 10%] test_ciptool.py E [ 10%] test_civclient.py E [ 10%] test_civserver.py E [ 10%] test_cksfv.py E [ 10%] test_cleanarch.py E [ 10%] test_clisp.py E [ 10%] test_clone_member.py E [ 10%] test_co.py E [ 10%] test_colordiff.py EE [ 10%] test_compare.py E [ 10%] test_compgen.py E [ 10%] test_complete.py EE [ 10%] test_composite.py E [ 11%] test_config_list.py E [ 11%] test_configure.py EE [ 11%] test_conjure.py E [ 11%] test_convert.py EEE [ 11%] test_cowsay.py E [ 11%] test_cp.py EE [ 11%] test_cpan2dist.py E [ 11%] test_cpio.py EE [ 11%] test_cplusplus.py E [ 11%] test_cppcheck.py EEEEEEE [ 12%] test_createdb.py E [ 12%] test_createuser.py E [ 12%] test_crontab.py EEE [ 12%] test_cryptsetup.py EE [ 12%] test_csplit.py EE [ 12%] test_curl.py EEEEEE [ 13%] test_cut.py EE [ 13%] test_cvs.py EEEE [ 13%] test_cvsps.py EE [ 13%] test_date.py EE [ 13%] test_dcop.py E [ 13%] test_dd.py EE [ 13%] test_declare.py EEEEEEE [ 14%] test_deja_dup.py EE [ 14%] test_desktop_file_validate.py EE [ 14%] test_df.py EE [ 14%] test_dfutool.py E [ 14%] test_dhclient.py E [ 14%] test_dict.py E [ 14%] test_diff.py E [ 14%] test_dir.py EE [ 15%] test_display.py EE [ 15%] test_dmesg.py E [ 15%] test_dmypy.py EE [ 15%] test_dnssec_keygen.py EEEEEEEEEEE [ 16%] test_dnsspoof.py E [ 16%] test_dot.py E [ 16%] test_dpkg.py EEEE [ 16%] test_dpkg_deb.py EE [ 16%] test_dpkg_query.py Ex [ 16%] test_dpkg_reconfigure.py E [ 16%] test_dpkg_source.py E [ 16%] test_dropdb.py E [ 16%] test_dropuser.py E [ 16%] test_dselect.py EE [ 16%] test_dsniff.py E [ 17%] test_du.py EE [ 17%] test_dumpdb.py E [ 17%] test_dumpe2fs.py EE [ 17%] test_e2freefrag.py EE [ 17%] test_e2label.py E [ 17%] test_ebtables.py E [ 17%] test_ecryptfs_migrate_home.py EE [ 17%] test_eject.py E [ 17%] test_enscript.py E [ 17%] test_env.py E [ 17%] test_eog.py EE [ 17%] test_ether_wake.py EE [ 18%] test_etherwake.py E [ 18%] test_evince.py EE [ 18%] test_expand.py E [ 18%] test_explodepkg.py E [ 18%] test_export.py EEEEEEEE [ 18%] test_faillog.py E [ 18%] test_fbgs.py E [ 18%] test_fbi.py E [ 19%] test_feh.py EEEEEE [ 19%] test_file.py EE [ 19%] test_file_roller.py E [ 19%] test_filefrag.py EE [ 19%] test_filesnarf.py E [ 19%] test_find.py EEEEEEEE [ 20%] test_find_member.py E [ 20%] test_finger.py EEE [ 20%] test_fio.py EEE [ 20%] test_firefox.py EE [ 20%] test_flake8.py EEE [ 20%] test_fmt.py E [ 21%] test_fold.py E [ 21%] test_freebsd_update.py E [ 21%] test_freeciv.py E [ 21%] test_freeciv_server.py E [ 21%] test_function.py E [ 21%] test_fusermount.py EE [ 21%] test_g4.py E [ 21%] test_g77.py E [ 21%] test_gcc.py EEEEEEEEEE [ 22%] test_gcj.py E [ 22%] test_gcl.py E [ 22%] test_gdb.py EE [ 22%] test_genaliases.py E [ 22%] test_gendiff.py E [ 22%] test_genisoimage.py EE [ 22%] test_geoiplookup.py E [ 22%] test_getconf.py EEEEE [ 22%] test_getent.py EE [ 23%] test_gkrellm.py x [ 23%] test_gm.py EEEE [ 23%] test_gmplayer.py E [ 23%] test_gnatmake.py E [ 23%] test_gnokii.py EE [ 23%] test_gnome_mplayer.py EE [ 23%] test_gnome_screenshot.py E [ 23%] test_gpasswd.py EE [ 23%] test_gpc.py E [ 23%] test_gperf.py E [ 24%] test_gpg.py E [ 24%] test_gpg2.py E [ 24%] test_gpgv.py EEE [ 24%] test_gphoto2.py E [ 24%] test_gplusplus.py E [ 24%] test_gprof.py E [ 24%] test_grep.py EEE [ 24%] test_groupadd.py EE [ 24%] test_groupdel.py EE [ 24%] test_groupmems.py E [ 24%] test_groupmod.py EE [ 25%] test_growisofs.py E [ 25%] test_grpck.py EE [ 25%] test_grub.py E [ 25%] test_gssdp_discover.py EEE [ 25%] test_gzip.py EEE [ 25%] test_hciattach.py E [ 25%] test_hciconfig.py E [ 25%] test_hcitool.py EE [ 25%] test_hddtemp.py E [ 25%] test_head.py E [ 26%] test_hexdump.py E [ 26%] test_hid2hci.py E [ 26%] test_host.py E [ 26%] test_hostname.py E [ 26%] test_hping2.py EE [ 26%] test_hping3.py E [ 26%] test_htop.py E [ 26%] test_htpasswd.py EEEEE [ 26%] test_hunspell.py EE [ 26%] test_hwclock.py E [ 27%] test_iconv.py EEEE [ 27%] test_id.py E [ 27%] test_identify.py E [ 27%] test_idn.py E [ 27%] test_ifdown.py EE [ 27%] test_ifstat.py EEE [ 27%] test_iftop.py EE [ 27%] test_ifup.py EEE [ 28%] test_import.py E [ 28%] test_influx.py EEE [ 28%] test_info.py EE [ 28%] test_inject.py E [ 28%] test_inotifywait.py EEE [ 28%] test_inotifywatch.py EEE [ 28%] test_insmod.py E [ 28%] test_installpkg.py EEEE [ 29%] test_interdiff.py EE [ 29%] test_invoke_rc_d.py EE [ 29%] test_ionice.py E [ 29%] test_ip.py EEE [ 29%] test_ipcalc.py EEEEE [ 29%] test_iperf.py EEEEE [ 30%] test_iperf3.py EEEE [ 30%] test_ipmitool.py EE [ 30%] test_ipsec.py E [ 30%] test_iptables.py E [ 30%] test_ipv6calc.py EE [ 30%] test_irb.py EE [ 30%] test_iscsiadm.py E [ 30%] test_isort.py EE [ 31%] test_isql.py E [ 31%] test_iwconfig.py E [ 31%] test_iwlist.py E [ 31%] test_iwpriv.py E [ 31%] test_iwspy.py E [ 31%] test_jar.py E [ 31%] test_jarsigner.py E [ 31%] test_java.py EEEEEE [ 31%] test_javac.py EE [ 31%] test_javadoc.py EEE [ 32%] test_javaws.py EE [ 32%] test_jpegoptim.py EE [ 32%] test_jps.py E [ 32%] test_jq.py EEEEEE [ 32%] test_jshint.py EE [ 32%] test_json_xs.py EE [ 32%] test_jsonschema.py EE [ 33%] test_k3b.py EE [ 33%] test_kcov.py EEE [ 33%] test_kdvi.py E [ 33%] test_kill.py EEEE [ 33%] test_killall.py EEEE [ 33%] test_kldload.py E [ 34%] test_kldunload.py E [ 34%] test_koji.py EE [ 34%] test_kpdf.py E [ 34%] test_kplayer.py E [ 34%] test_ktutil.py EE [ 34%] test_l2ping.py E [ 34%] test_larch.py E [ 34%] test_lastlog.py E [ 34%] test_ld.py EE [ 34%] test_ldapadd.py E [ 34%] test_ldapcompare.py E [ 34%] test_ldapdelete.py E [ 34%] test_ldapmodrdn.py E [ 34%] test_ldappasswd.py E [ 35%] test_ldapsearch.py E [ 35%] test_ldapvi.py E [ 35%] test_ldapwhoami.py E [ 35%] test_ldd.py EE [ 35%] test_less.py EE [ 35%] test_lftp.py EE [ 35%] test_lftpget.py E [ 35%] test_lilo.py EEE [ 35%] test_links.py EE [ 35%] test_lintian.py E [ 35%] test_lintian_info.py EE [ 36%] test_lisp.py E [ 36%] test_list_admins.py E [ 36%] test_list_lists.py E [ 36%] test_list_members.py E [ 36%] test_list_owners.py E [ 36%] test_ln.py EE [ 36%] test_locale_gen.py EE [ 36%] test_look.py E [ 36%] test_lpq.py E [ 36%] test_lpr.py E [ 36%] test_lrzip.py EEE [ 36%] test_ls.py EEE [ 37%] test_lsof.py EE [ 37%] test_lspci.py EE [ 37%] test_lsscsi.py EE [ 37%] test_lsusb.py E [ 37%] test_lua.py EE [ 37%] test_luac.py EE [ 37%] test_luseradd.py E [ 37%] test_luserdel.py EE [ 37%] test_lusermod.py E [ 38%] test_lvchange.py E [ 38%] test_lvcreate.py E [ 38%] test_lvdisplay.py E [ 38%] test_lvextend.py E [ 38%] test_lvm.py E [ 38%] test_lvmdiskscan.py E [ 38%] test_lvreduce.py E [ 38%] test_lvremove.py E [ 38%] test_lvrename.py E [ 38%] test_lvresize.py E [ 38%] test_lvs.py E [ 38%] test_lvscan.py E [ 38%] test_lz4.py EEE [ 38%] test_lzip.py EE [ 39%] test_lzma.py EEEE [ 39%] test_lzop.py EE [ 39%] test_m4.py E [ 39%] test_macof.py E [ 39%] test_mailmanctl.py E [ 39%] test_mailsnarf.py E [ 39%] test_make.py EEEEEEEEE [ 40%] test_makepkg.py EE [ 40%] test_man.py EEEEEEEEEEEEEEE [ 41%] test_mc.py E [ 41%] test_mcrypt.py EEEE [ 41%] test_md5sum.py EE [ 41%] test_mdadm.py E [ 41%] test_mdecrypt.py E [ 41%] test_mdtool.py E [ 41%] test_medusa.py E [ 41%] test_mencoder.py EE [ 41%] test_mii_diag.py EE [ 42%] test_mii_tool.py EE [ 42%] test_minicom.py E [ 42%] test_mkdir.py EExE [ 42%] test_mkfifo.py EE [ 42%] test_mkinitrd.py E [ 42%] test_mkisofs.py EEE [ 42%] test_mknod.py EE [ 42%] test_mktemp.py E [ 43%] test_mmsitepass.py E [ 43%] test_mock.py EE [ 43%] test_modinfo.py EEEE [ 43%] test_modprobe.py EEEEE [ 43%] test_module.py E [ 43%] test_mogrify.py E [ 43%] test_monodevelop.py EE [ 43%] test_montage.py E [ 44%] test_mount.py EEEE [ 44%] test_mplayer.py EE [ 44%] test_mr.py EEEEEEEE [ 44%] test_msgsnarf.py E [ 44%] test_msynctool.py E [ 44%] test_mtx.py E [ 45%] test_munin_node_configure.py EE [ 45%] test_munin_run.py E [ 45%] test_munindoc.py E [ 45%] test_mussh.py E [ 45%] test_mutt.py EEEE [ 45%] test_muttng.py E [ 45%] test_mv.py EE [ 45%] test_mypy.py EEE [ 45%] test_mysql.py EEE [ 46%] test_mysqladmin.py E [ 46%] test_nc.py E [ 46%] test_ncftp.py EE [ 46%] test_neomutt.py E [ 46%] test_nethogs.py EE [ 46%] test_netstat.py EE [ 46%] test_newgrp.py E [ 46%] test_newlist.py E [ 46%] test_newusers.py EE [ 46%] test_ngrep.py EE [ 47%] test_nl.py EE [ 47%] test_nm.py EE [ 47%] test_nmap.py EEEE [ 47%] test_nmcli.py E [ 47%] test_nproc.py EE [ 47%] test_nslookup.py E [ 47%] test_nsupdate.py EE [ 47%] test_ntpdate.py E [ 47%] test_objcopy.py EE [ 48%] test_objdump.py E [ 48%] test_od.py EE [ 48%] test_oggdec.py EE [ 48%] test_op.py EE [ 48%] test_openssl.py EEE [ 48%] test_opera.py EE [ 48%] test_optipng.py EE [ 48%] test_p4.py E [ 48%] test_pack200.py E [ 48%] test_passwd.py EE [ 49%] test_paste.py EE [ 49%] test_patch.py EE [ 49%] test_pdftotext.py EE [ 49%] test_perl.py EEEEEEEEEEEEEEEEEEE [ 50%] test_perlcritic.py EEE [ 50%] test_perldoc.py EEE [ 50%] test_perltidy.py EEEE [ 51%] test_pgrep.py EEEE [ 51%] test_phing.py EE [ 51%] test_pidof.py EE [ 51%] test_pine.py E [ 51%] test_pinfo.py EE [ 51%] test_ping.py EE [ 51%] test_pkg_config.py EEE [ 52%] test_pkg_deinstall.py E [ 52%] test_pkg_delete.py E [ 52%] test_pkg_get.py E [ 52%] test_pkg_info.py E [ 52%] test_pkgadd.py E [ 52%] test_pkgconf.py EEE [ 52%] test_pkgrm.py E [ 52%] test_pkgtool.py E [ 52%] test_pkgutil.py E [ 52%] test_pkill.py EE [ 52%] test_plague_client.py E [ 52%] test_pm_hibernate.py E [ 52%] test_pm_is_supported.py E [ 53%] test_pm_powersave.py E [ 53%] test_pngfix.py EE [ 53%] test_portinstall.py E [ 53%] test_portsnap.py E [ 53%] test_portupgrade.py E [ 53%] test_postcat.py EE [ 53%] test_postconf.py EE [ 53%] test_postfix.py Ex [ 53%] test_postmap.py EE [ 53%] test_postsuper.py E [ 53%] test_povray.py E [ 54%] test_pr.py EE [ 54%] test_prelink.py EE [ 54%] test_printenv.py EEE [ 54%] test_protoc.py EEE [ 54%] test_ps.py EEEEEEE [ 55%] test_psql.py E [ 55%] test_ptx.py EE [ 55%] test_puppet.py EE [ 55%] test_pushd.py E [ 55%] test_pv.py EEE [ 55%] test_pvchange.py E [ 55%] test_pvcreate.py E [ 55%] test_pvdisplay.py E [ 55%] test_pvmove.py E [ 55%] test_pvremove.py E [ 55%] test_pvs.py E [ 55%] test_pvscan.py E [ 55%] test_pwck.py EE [ 56%] test_pwd.py E [ 56%] test_pwdx.py EE [ 56%] test_pwgen.py E [ 56%] test_pycodestyle.py EEE [ 56%] test_pydoc.py EE [ 56%] test_pydocstyle.py EE [ 56%] test_pyflakes.py EE [ 56%] test_pylint.py EE [ 56%] test_pylint_3.py EE [ 57%] test_pytest.py EEEEEE. [ 57%] test_python.py EEEEEEEEE [ 58%] test_python3.py EEEEEEEEE [ 58%] test_pyvenv.py E [ 58%] test_qemu.py EEE [ 58%] test_qemu_system_x86_64.py EEE [ 58%] test_qrunner.py E [ 59%] test_querybts.py E [ 59%] test_quota.py EE [ 59%] test_quotacheck.py E [ 59%] test_quotaon.py E [ 59%] test_radvdump.py EE [ 59%] test_rcs.py E [ 59%] test_rcsdiff.py E [ 59%] test_rdesktop.py E [ 59%] test_rdict.py E [ 59%] test_readelf.py E [ 59%] test_readonly.py E [ 59%] test_remove_members.py E [ 59%] test_removepkg.py EE [ 60%] test_renice.py EE [ 60%] test_repomanage.py EE [ 60%] test_reportbug.py E [ 60%] test_reptyr.py EE [ 60%] test_resolvconf.py E [ 60%] test_rfcomm.py E [ 60%] test_rfkill.py EE [ 60%] test_ri.py EEE [ 60%] test_rlog.py E [ 60%] test_rm.py EE [ 61%] test_rmdir.py EEE [ 61%] test_rmlist.py E [ 61%] test_rmmod.py E [ 61%] test_route.py E [ 61%] test_rpcdebug.py E [ 61%] test_rpm.py EEE [ 61%] test_rpm2tgz.py EE [ 61%] test_rpmbuild.py E [ 61%] test_rrdtool.py E [ 61%] test_rsync.py EEE [ 62%] test_rtcwake.py EE [ 62%] test_runuser.py E [ 62%] test_sbcl.py E [ 62%] test_sbcl_mt.py E [ 62%] test_sbopkg.py E [ 62%] test_scp.py EEEE [ 62%] test_screen.py EEEEEEEEEEE [ 63%] test_scrub.py EEE [ 63%] test_sdptool.py E [ 63%] test_secret_tool.py EE [ 63%] test_sed.py E [ 63%] test_seq.py E [ 63%] test_service.py E [ 63%] test_set.py E [ 63%] test_setquota.py EE [ 63%] test_sftp.py EEEEE [ 64%] test_sh.py EEEE [ 64%] test_sha1sum.py E [ 64%] test_sha256sum.py EEE [ 64%] test_shar.py E [ 64%] test_shellcheck.py EEEE [ 65%] test_sitecopy.py E [ 65%] test_slackpkg.py E [ 65%] test_slapt_get.py EEEE [ 65%] test_slapt_src.py EEEE [ 65%] test_smartctl.py E [ 65%] test_smbcacls.py E [ 65%] test_smbclient.py E [ 65%] test_smbcquotas.py E [ 65%] test_smbget.py E [ 65%] test_smbpasswd.py E [ 65%] test_smbtar.py E [ 66%] test_smbtree.py E [ 66%] test_snownews.py E [ 66%] test_sort.py E [ 66%] test_split.py E [ 66%] test_spovray.py E [ 66%] test_sqlite3.py EEE [ 66%] test_ss.py EEE [ 66%] test_ssh.py EEEExEEEEEEE [ 67%] test_ssh_add.py EE [ 67%] test_ssh_copy_id.py E [ 67%] test_ssh_keygen.py EEEEEEEEEEEE [ 68%] test_sshfs.py E [ 68%] test_sshmitm.py E [ 68%] test_sshow.py E [ 68%] test_strace.py E [ 68%] test_stream.py E [ 68%] test_strings.py EE [ 68%] test_strip.py E [ 68%] test_su.py EE [ 68%] test_sudo.py EEEEEEEEEEEEEEEE [ 69%] test_sum.py EE [ 69%] test_svcadm.py E [ 70%] test_svk.py E [ 70%] test_svn.py E [ 70%] test_svnadmin.py E [ 70%] test_svnlook.py E [ 70%] test_sync_members.py E [ 70%] test_synclient.py EE [ 70%] test_sysbench.py EE [ 70%] test_sysctl.py EE [ 70%] test_tac.py E [ 70%] test_tail.py E [ 70%] test_tar.py EEEEEEEEEEEEEEEEEEEEEE [ 72%] test_tcpdump.py E [ 72%] test_tcpkill.py E [ 72%] test_tcpnice.py E [ 72%] test_tee.py EE [ 72%] test_texindex.py E [ 72%] test_tightvncviewer.py E [ 72%] test_time.py EEE [ 72%] test_timeout.py EE [ 72%] test_tipc.py E [ 72%] test_totem.py E [ 72%] test_touch.py E [ 72%] test_tox.py EEEE [ 73%] test_tr.py E [ 73%] test_tracepath.py EE [ 73%] test_tshark.py EEEEEEE [ 73%] test_tsig_keygen.py EE [ 73%] test_tune2fs.py EE [ 74%] test_udevadm.py EE [ 74%] test_ulimit.py EEEEEEE [ 74%] test_umount.py EEEEEEEEEEEE [ 75%] test_unace.py E [ 75%] test_uname.py E [ 75%] test_unexpand.py E [ 75%] test_uniq.py E [ 75%] test_units.py E [ 75%] test_unpack200.py E [ 75%] test_unrar.py E [ 75%] test_unset.py E [ 75%] test_unshunt.py E [ 75%] test_update_alternatives.py E [ 75%] test_update_rc_d.py E [ 75%] test_upgradepkg.py EEEE [ 76%] test_urlsnarf.py E [ 76%] test_uscan.py E [ 76%] test_useradd.py EEE [ 76%] test_userdel.py EE [ 76%] test_usermod.py EEE [ 76%] test_valgrind.py EEEEE [ 77%] test_vdir.py EE [ 77%] test_vgcfgbackup.py E [ 77%] test_vgcfgrestore.py E [ 77%] test_vgchange.py E [ 77%] test_vgck.py E [ 77%] test_vgconvert.py E [ 77%] test_vgcreate.py EE [ 77%] test_vgdisplay.py E [ 77%] test_vgexport.py E [ 77%] test_vgextend.py E [ 77%] test_vgimport.py E [ 77%] test_vgmerge.py E [ 77%] test_vgmknodes.py E [ 77%] test_vgreduce.py E [ 78%] test_vgremove.py E [ 78%] test_vgrename.py E [ 78%] test_vgs.py E [ 78%] test_vgscan.py E [ 78%] test_vgsplit.py E [ 78%] test_vi.py EE [ 78%] test_vipw.py E [ 78%] test_vmstat.py E [ 78%] test_vncviewer.py E [ 78%] test_vpnc.py E [ 78%] test_watch.py E [ 78%] test_wc.py E [ 78%] test_webmitm.py E [ 78%] test_wget.py EE [ 78%] test_who.py E [ 79%] test_wine.py EEE [ 79%] test_withlist.py E [ 79%] test_wodim.py E [ 79%] test_wol.py EEE [ 79%] test_write.py E [ 79%] test_wsimport.py EE [ 79%] test_wtf.py E [ 79%] test_wvdial.py E [ 79%] test_xdg_mime.py EEEEEE [ 80%] test_xdg_settings.py EEE [ 80%] test_xfreerdp.py EEEEEEEE [ 80%] test_xgamma.py EE [ 80%] test_xhost.py EEEEEE [ 81%] test_xm.py E [ 81%] test_xmllint.py EE [ 81%] test_xmlwf.py EE [ 81%] test_xmms.py EE [ 81%] test_xmodmap.py EE [ 81%] test_xpovray.py E [ 81%] test_xrandr.py EEEEEEEEEEEEEEEEEEEEEEEE [ 83%] test_xrdb.py EE [ 83%] test_xsltproc.py EE [ 83%] test_xvfb_run.py EE [ 83%] test_xvnc4viewer.py EEE [ 83%] test_xxd.py EE [ 83%] test_xz.py EEEEE [ 84%] test_xzdec.py EE [ 84%] test_ypcat.py E [ 84%] test_ypmatch.py E [ 84%] test_yum.py E [ 84%] test_yum_arch.py E [ 84%] test_zopfli.py EEE [ 84%] test_zopflipng.py EE [ 84%] unit/test_unit_count_args.py EEEEEEEEE [ 85%] unit/test_unit_expand.py EEEE [ 85%] unit/test_unit_expand_tilde_by_ref.py EEEEEEEEEEEEEEEE [ 86%] unit/test_unit_filedir.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 89%] EEExx [ 89%] unit/test_unit_find_unique_completion_pair.py ............ [ 90%] unit/test_unit_get_comp_words_by_ref.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 92%] EEEE [ 92%] unit/test_unit_get_cword.py EEEEEEEEEEEEEEEEEEEEEEEx [ 93%] unit/test_unit_init_completion.py EEEEEEE [ 94%] unit/test_unit_ip_addresses.py EEEE [ 94%] unit/test_unit_known_hosts_real.py EEEEEEEEEE [ 95%] unit/test_unit_longopt.py EEEEEEE [ 95%] unit/test_unit_parse_help.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 97%] unit/test_unit_parse_usage.py EEEEEEEEEEEE [ 98%] unit/test_unit_pgids.py EEE [ 98%] unit/test_unit_pids.py EEE [ 98%] unit/test_unit_pnames.py EEE [ 98%] unit/test_unit_quote.py EEEEE [ 99%] unit/test_unit_quote_readline.py EE [ 99%] unit/test_unit_tilde.py EEEEE [ 99%] unit/test_unit_variables.py EEEEEE [ 99%] unit/test_unit_xinetd_services.py EEE [100%] ==================================== ERRORS ==================================== ______________________ ERROR at setup of Test2to3.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of Test2to3.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_5 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_6 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of Test7z.test_7 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestA2ps.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestA2ps.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestA2x.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestA2x.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestAbook.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAclocal.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAclocal.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestAcpi.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAcroread.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAdb.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAdb.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestAddMembers.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestAlias.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestAlias.test_alias_at_point ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAlpine.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAnimate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAnt.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAnt.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAnt.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAnt.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAnt.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestApache2ctl.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestAppdataValidate.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestAppdataValidate.test_2 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAptBuild.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAptCache.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAptCache.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestAptCache.test_special_at_point _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptGet.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptGet.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestAptGet.test_build_dep_dirs _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptMark.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptMark.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptMark.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptMark.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAptMark.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAptitude.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestAptitude.test_options __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestAptitude.test_long_options _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestAptitude.test_no_i_with_u ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestAptitude.test_no_u_with_i ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestArch.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestArp.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestArp.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestArping.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestArping.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestArpspoof.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAsciidoc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAsciidoc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAspell.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAutoconf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestAutoheader.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAutomake.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAutomake.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestAutoreconf.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAutorpm.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAutoscan.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAutoscan.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAutossh.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestAutoupdate.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestAvahiBrowse.test_options ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestAvahiBrowse.test_service_types _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________ ERROR at setup of TestAvahiBrowse.test_no_service_type_with_a _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestAvctrl.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestAwk.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestAwk.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestBadblocks.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestBadblocks.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestBase64.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestBase64.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBash.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestBc.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBind.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBind.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBison.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestBk.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestBmake.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBrctl.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestBsdtar.test_readable_archives ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestBsdtar.test_writable_archives ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestBtdownloadcursesPy.test_1 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestBtdownloadguiPy.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestBtdownloadheadlessPy.test_1 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestBts.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestBts.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBzip2.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBzip2.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestBzip2.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCal.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCal.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCancel.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCardctl.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestCarton.test_commands __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestCarton.test_install_options _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCat.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCat.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCc.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCcache.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCcze.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCcze.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCcze.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCcze.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCd.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCd.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCd.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCd.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestCd.test_dir_at_point __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCdrecord.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCfagent.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCfrun.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChage.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChage.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChangePw.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCheckDb.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestCheckPerms.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChecksec.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChfn.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChgrp.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChkconfig.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChkconfig.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChmod.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChmod.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChmod.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChmod.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChmod.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestChown.test_7[funky\\ user:] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestChown.test_7[funky.user:] ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestChown.test_7[funky\\.user:] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestChown.test_7[fu\\ nky.user:] ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________ ERROR at setup of TestChown.test_7[f\\ o\\ o\\.\\bar:] ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________ ERROR at setup of TestChown.test_7[foo\\_b\\ a\\.r\\ :] ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_8 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChown.test_9 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChpasswd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestChromiumBrowser.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestChromiumBrowser.test_2 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________ ERROR at setup of TestChromiumBrowser.test_proxy_server_scheme ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________ ERROR at setup of TestChromiumBrowser.test_proxy_server_host _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChronyc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChronyc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChroot.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChroot.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestChroot.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChrpath.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestChrpath.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChsh.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestChsh.test_shells ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestChsh.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestChsh.test_chroot_shells _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCi.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCiptool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCivclient.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCivserver.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCksfv.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCleanarch.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestClisp.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestCloneMember.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCo.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestColordiff.test_basic __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestColordiff.test_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCompare.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCompgen.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestComplete.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestComplete.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestComposite.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestConfigList.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestConfigure.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestConfigure.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestConjure.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestConvert.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestConvert.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestConvert.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCowsay.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCp.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCp.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCpan2dist.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCpio.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCpio.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCPlusPlus.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_6 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCppcheck.test_7 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCreatedb.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestCreateuser.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCrontab.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestCrontab.test_only_u_with_l _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestCrontab.test_no_l_with_r ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestCryptsetup.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestCryptsetup.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestCsplit.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestCsplit.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCurl.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCurl.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCurl.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCurl.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestCurl.test_data_atfile __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestCurl.test_data_atfile_dir ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCut.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestCut.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCvs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCvs.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCvs.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestCvs.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCvsps.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestCvsps.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDate.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestDate.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDcop.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDd.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDd.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDeclare.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDeclare.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDeclare.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDeclare.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestDeclare.test_arrayvar __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestDeclare.test_no_arrayvar_for_f _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestDeclare.test_no_arrayvar_for_i _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDejaDup.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDejaDup.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestDesktopFileValidate.test_1 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestDesktopFileValidate.test_2 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDf.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDf.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDfutool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDhclient.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDict.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDiff.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDir.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDir.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDisplay.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDisplay.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDmesg.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDmypy.test_commands ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestDmypy.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_4 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_5 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_6 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_7 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_8 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_9 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_10 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestDnssecKeygen.test_11 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDnsspoof.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDot.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDpkg.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDpkg.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestDpkg.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDpkg.test_i_deb _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDpkgDeb.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestDpkgDeb.test_show ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestDpkgQuery.test_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestDpkgReconfigure.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestDpkgSource.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDropdb.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDropuser.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDselect.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDselect.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDsniff.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestDu.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDu.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestDumpdb.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDumpe2fs.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestDumpe2fs.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestE2freefrag.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestE2freefrag.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestE2label.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestEbtables.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestEcryptfsMigrateHome.test_1 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestEcryptfsMigrateHome.test_2 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestEject.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestEnscript.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestEnv.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestEog.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestEog.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestEtherWake.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestEtherWake.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestEtherwake.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestEvince.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestEvince.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExpand.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestExplodepkg.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_7 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestExport.test_8 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFaillog.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFbgs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFbi.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFeh.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFile.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFile.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestFileRoller.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestFilefrag.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestFilefrag.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestFilesnarf.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFind.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFind.test_exec _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestFind.test_exec_args ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestFindMember.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFinger.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFinger.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestFinger.test_partial_hostname ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFio.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFio.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFio.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFirefox.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFirefox.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFlake8.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFlake8.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFlake8.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestFmt.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestFold.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestFreebsdUpdate.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestFreeciv.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestFreecivServer.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestFunction.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestFusermount.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestFusermount.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestG4.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestG77.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGcc.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestGcc.test_enum_value ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestGcc.test_enum_value_with_eq _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestGcc.test_negative_option ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestGcc.test_no_completion _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestGcc.test_param_with_space ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestGcc.test_param_with_eq _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGcc.test_march _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestGcc.test_march_native __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestGcc.test_mtune_generic _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGcj.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGcl.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGdb.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGdb.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestGenaliases.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGendiff.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestGenisoimage.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestGenisoimage.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestGeoiplookup.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetconf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetconf.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetconf.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetconf.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetconf.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetent.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGetent.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGm.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGm.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGm.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGm.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGmplayer.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGnatmake.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGnokii.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGnokii.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestGnomeMplayer.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestGnomeMplayer.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestGnomeScreenshot.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGpasswd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGpasswd.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGpc.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGperf.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestGpg.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGpg2.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGpgv.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGpgv.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGpgv.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestGphoto2.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGPlusPlus.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGprof.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGrep.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGrep.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______ ERROR at setup of TestGrep.test_no_variable_assignment_confusion _______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupadd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupadd.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupdel.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupdel.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupmems.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupmod.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGroupmod.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestGrowisofs.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGrpck.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGrpck.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGrub.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestGssdpDiscover.test_no_args _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestGssdpDiscover.test_options _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________ ERROR at setup of TestGssdpDiscover.test_message_type _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGzip.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGzip.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestGzip.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHciattach.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHciconfig.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHcitool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHcitool.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHddtemp.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestHead.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHexdump.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHid2hci.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestHost.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHostname.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHping2.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHping2.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHping3.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestHtop.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHtpasswd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHtpasswd.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHtpasswd.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHtpasswd.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHtpasswd.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHunspell.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestHunspell.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestHwclock.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIconv.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIconv.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIconv.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIconv.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestId.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIdentify.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestIdn.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIfdown.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIfdown.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIfstat.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIfstat.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIfstat.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIftop.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIftop.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIfup.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIfup.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIfup.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestImport.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestInflux.test_nothing ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestInflux.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInflux.test_format ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestInfo.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestInfo.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestInject.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInotifywait.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInotifywait.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInotifywait.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestInotifywatch.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestInotifywatch.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestInotifywatch.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestInsmod.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInstallpkg.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInstallpkg.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInstallpkg.test_3 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestInstallpkg.test_4 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestInterdiff.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestInterdiff.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestInvokeRcD.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestInvokeRcD.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIonice.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestIp.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestIp.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIp.test_r_r _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestIpcalc.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestIpcalc.test_split_3args_1 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestIpcalc.test_split_3args_2 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestIpcalc.test_split_3args_3 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestIpcalc.test_split_3args_4 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIperf.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIperf.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIperf.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIperf.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIperf.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIperf3.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIperf3.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIperf3.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIperf3.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIpmitool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIpmitool.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIpsec.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIptables.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIpv6calc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIpv6calc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestIrb.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIrb.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIscsiadm.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIsort.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIsort.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIsql.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestIwconfig.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIwlist.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestIwpriv.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestIwspy.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJar.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestJarsigner.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJava.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJavac.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestJavac.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJavadoc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJavadoc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJavadoc.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJavaws.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJavaws.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestJpegoptim.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestJpegoptim.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJps.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_5 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestJq.test_6 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJshint.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJshint.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJsonXs.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestJsonXs.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestJsonschema.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestJsonschema.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestK3b.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestK3b.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKcov.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKcov.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKcov.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKdvi.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKill.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKill.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKill.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKill.test_jobs _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKillall.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKillall.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKillall.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKillall.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKldload.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestKldunload.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKoji.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKoji.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestKpdf.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKplayer.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKtutil.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestKtutil.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestL2ping.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLarch.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLastlog.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLd.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLd.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLdapadd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdapcompare.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdapdelete.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdapmodrdn.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdappasswd.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdapsearch.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLdapvi.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLdapwhoami.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLdd.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLdd.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLess.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestLess.test_no_dashdashdash ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLftp.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLftp.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLftpget.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLilo.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLilo.test_labels ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________ ERROR at setup of TestLilo.test_labels_incorrect_command ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLinks.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLinks.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLintian.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLintianInfo.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLintianInfo.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLisp.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestListAdmins.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestListLists.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestListMembers.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestListOwners.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLn.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLn.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLocaleGen.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLocaleGen.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLook.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLpq.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLpr.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLrzip.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLrzip.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLrzip.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLs.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLs.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLs.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLsof.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLsof.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLspci.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLspci.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLsscsi.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLsscsi.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLsusb.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLua.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLua.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLuac.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLuac.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLuseradd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLuserdel.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLuserdel.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLusermod.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvchange.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvcreate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvdisplay.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvextend.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLvm.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestLvmdiskscan.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvreduce.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvremove.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvrename.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestLvresize.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLvs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestLvscan.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLz4.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLz4.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestLz4.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzip.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzip.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzma.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzma.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzma.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzma.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzop.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestLzop.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestM4.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMacof.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMailmanctl.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMailsnarf.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_7 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_8 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMake.test_9 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMakepkg.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMakepkg.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_7 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_8 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMan.test_9 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMan.test_10 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMan.test_11 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestMan.test_delimited_first ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________ ERROR at setup of TestMan.test_delimited_after_delimiter ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestMan.test_delimited_later ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________ ERROR at setup of TestMan.test_delimited_deduplication ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMc.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMcrypt.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMcrypt.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMcrypt.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMcrypt.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMd5sum.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestMd5sum.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMdadm.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMdecrypt.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMdtool.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMedusa.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMencoder.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMencoder.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMiiDiag.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMiiDiag.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMiiTool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMiiTool.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMinicom.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMkdir.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMkdir.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMkdir.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMkfifo.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestMkfifo.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMkinitrd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMkisofs.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMkisofs.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMkisofs.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMknod.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMknod.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMktemp.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMmsitepass.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMock.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMock.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestModinfo.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestModinfo.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestModinfo.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestModinfo.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestModprobe.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestModprobe.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestModprobe.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestModprobe.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestModprobe.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestModule.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMogrify.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMonodevelop.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMonodevelop.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMontage.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMount.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMount.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMount.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMount.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMplayer.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMplayer.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_5 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_6 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_7 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMr.test_8 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMsgsnarf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMsynctool.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMtx.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestMuninNodeConfigure.test_1 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestMuninNodeConfigure.test_2 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMuninRun.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMunindoc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMussh.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMutt.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMutt.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMutt.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMutt.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestMuttng.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestMv.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestMv.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMypy.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMypy.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMypy.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMysql.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMysql.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestMysql.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestMysqladmin.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestNc.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNcftp.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNcftp.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNeomutt.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNethogs.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNethogs.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNetstat.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestNetstat.test_options __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNewgrp.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNewlist.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNewusers.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNewusers.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNgrep.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNgrep.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestNl.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNl.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestNm.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNm.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestNmap.test_live_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNmap.test_hosts _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestNmap.test_mock_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestNmap.test_mock_nospace _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNmcli.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNproc.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestNproc.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNslookup.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNsupdate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestNsupdate.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestNtpdate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestObjcopy.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestObjcopy.test_options __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestObjdump.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestOd.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestOd.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOggdec.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOggdec.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestOp.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestOp.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOpenssl.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOpenssl.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOpenssl.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestOpera.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestOpera.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOptipng.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestOptipng.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestP4.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPack200.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPasswd.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPasswd.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPaste.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPaste.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPatch.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPatch.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPdftotext.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPdftotext.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_7 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_8 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_9 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_10 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_11 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_12 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_13 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_14 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_15 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_16 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPerl.test_17 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestPerl.test_dash_capital_e ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPerl.test_dash_e ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPerlcritic.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPerlcritic.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPerlcritic.test_3 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPerldoc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPerldoc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPerldoc.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPerltidy.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPerltidy.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPerltidy.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPerltidy.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPgrep.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPgrep.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPgrep.test_nslist ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________ ERROR at setup of TestPgrep.test_nslist_after_comma ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPhing.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPhing.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPidof.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPidof.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPine.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPinfo.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPinfo.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPing.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPing.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPkgConfig.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPkgConfig.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________________ ERROR at setup of TestPkgConfig.test_variable _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestPkgDeinstall.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPkgDelete.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgGet.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgInfo.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgadd.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgconf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgconf.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestPkgconf.test_variable __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPkgrm.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgtool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPkgutil.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPkill.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPkill.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestPlagueClient.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPmHibernate.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestPmIsSupported.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPmPowersave.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPngfix.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPngfix.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPortinstall.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPortsnap.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPortupgrade.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPostcat.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPostcat.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPostconf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPostconf.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPostfix.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPostmap.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPostmap.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPostsuper.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPovray.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPr.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPr.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPrelink.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPrelink.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestPrintenv.test_empty ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPrintenv.test_path ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _________________ ERROR at setup of TestPrintenv.test_options __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestProtoc.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestProtoc.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestProtoc.test_all_out ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_5 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_6 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPs.test_7 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPsql.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPtx.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPtx.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPuppet.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPuppet.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPushd.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPv.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPv.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPv.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPvchange.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPvcreate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPvdisplay.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPvmove.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPvremove.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPvs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPvscan.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPwck.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPwck.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestPwd.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPwdx.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPwdx.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPwgen.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPycodestyle.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPycodestyle.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPycodestyle.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPydoc.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestPydoc.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPydocstyle.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestPydocstyle.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPyflakes.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestPyflakes.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPylint.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPylint.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPylint3.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPylint3.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPytest.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPytest.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________ ERROR at setup of TestPytest.test_classes_and_functions ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestPytest.test_class_methods ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ________ ERROR at setup of TestPytest.test_classes_and_async_functions _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________ ERROR at setup of TestPytest.test_async_class_methods _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_7 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_8 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython.test_9 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_6 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_7 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_8 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPython3.test_9 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestPyvenv.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestQemu.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestQemu.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestQemu.test_keymaps ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________ ERROR at setup of TestQemuSystemX8664.test_basic _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestQemuSystemX8664.test_options ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________ ERROR at setup of TestQemuSystemX8664.test_keymaps ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestQrunner.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestQuerybts.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestQuota.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestQuota.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ___________________ ERROR at setup of TestQuotacheck.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestQuotaon.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestRadvdump.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestRadvdump.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _______________________ ERROR at setup of TestRcs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestRcsdiff.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestRdesktop.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ______________________ ERROR at setup of TestRdict.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError _____________________ ERROR at setup of TestReadelf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError ____________________ ERROR at setup of TestReadonly.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:230: in spawn pid, fd = pty.fork() /usr/lib/python3.9/pty.py:97: in fork master_fd, slave_fd = openpty() /usr/lib/python3.9/pty.py:30: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name).""" for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except OSError: continue return (fd, '/dev/tty' + x + y) > raise OSError('out of pty devices') E OSError: out of pty devices /usr/lib/python3.9/pty.py:60: OSError __________________ ERROR at setup of TestRemoveMembers.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestRemovepkg.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestRemovepkg.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRenice.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRenice.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestRepomanage.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestRepomanage.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestReportbug.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestReptyr.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestReptyr.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestResolvconf.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRfcomm.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRfkill.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRfkill.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRi.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRi.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRi.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRlog.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRm.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestRm.test_options _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRmdir.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRmdir.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestRmdir.test_options ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRmlist.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRmmod.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRoute.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestRpcdebug.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRpm.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRpm.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestRpm.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRpm2tgz.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRpm2tgz.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestRpmbuild.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRrdtool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRsync.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRsync.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestRsync.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRtcwake.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRtcwake.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestRunuser.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSbcl.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSbclMt.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSbopkg.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScp.test_basic _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestScp.test_basic_spaced_conf _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestScp.test_capital_f_without_space ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScp.test_live ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScreen.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScreen.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScreen.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScreen.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestScreen.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestScreen.test_telnet ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestScreen.test_not_telnet _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestScreen.test_telnet_first_arg ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestScreen.test_telnet_other_args ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestScreen.test_serial_2nd_arg _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestScreen.test_serial_3rdplus_arg _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestScrub.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestScrub.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestScrub.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSdptool.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSecretTool.test_modes __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestSecretTool.test_no_complete _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSed.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSeq.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestService.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSet.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSetquota.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSetquota.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSftp.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSftp.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSftp.test_hosts _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestSftp.test_hosts_spaced_conf _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________ ERROR at setup of TestSftp.test_capital_f_without_space ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSh.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSh.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSh.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSh.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSha1sum.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSha256sum.test_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSha256sum.test_summing _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestSha256sum.test_checking _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestShar.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestShellcheck.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestShellcheck.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestShellcheck.test_3 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestShellcheck.test_4 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSitecopy.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlackpkg.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptGet.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptGet.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptGet.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSlaptGet.test_install __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptSrc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptSrc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSlaptSrc.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSlaptSrc.test_install __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSmartctl.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSmbcacls.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSmbclient.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestSmbcquotas.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSmbget.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSmbpasswd.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSmbtar.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSmbtree.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSnownews.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSort.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSplit.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSpovray.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSqlite3.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSqlite3.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSqlite3.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSs.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSs.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSs.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSsh.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSsh.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSsh.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSsh.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSsh.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestSsh.test_capital_f_without_space ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestSsh.test_capital_f_nonexistent _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestSsh.test_partial_hostname ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestSsh.test_protocol_option_bundling[4] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestSsh.test_protocol_option_bundling[6] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestSsh.test_protocol_option_bundling[9] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSshAdd.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSshAdd.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSshCopyId.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSshKeygen.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________ ERROR at setup of TestSshKeygen.test_filedir_pub_at_end_of_s _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestSshKeygen.test_usernames_for_n _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestSshKeygen.test_host_for_h_n _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestSshKeygen.test_n_with_Y _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestSshKeygen.test_r_without_Y _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestSshKeygen.test_r_with_Y _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestSshKeygen.test_ecdsa_b _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestSshKeygen.test_ecdsa_sk_b ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSshKeygen.test_O ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestSshKeygen.test_O_force_command _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestSshKeygen.test_O_unknown ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSshfs.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSshmitm.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSshow.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestStrace.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestStream.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestStrings.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestStrings.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestStrip.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSu.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSu.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_7 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_8 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestSudo.test_9[funky\\ user:] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestSudo.test_9[funky.user:] ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestSudo.test_9[funky\\.user:] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestSudo.test_9[fu\\ nky.user:] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestSudo.test_9[f\\ o\\ o\\.\\bar:] _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestSudo.test_9[foo\\_b\\ a\\.r\\ :] ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_10 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestSudo.test_11 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSum.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSum.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSvcadm.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSvk.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestSvn.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSvnadmin.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSvnlook.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestSyncMembers.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSynclient.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSynclient.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSysbench.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestSysbench.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSysctl.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestSysctl.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTac.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTail.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_4 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_5 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_6 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_7 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_8 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTar.test_9 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_10 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_11 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_12 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_13 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_14 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_15 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_16 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_17 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_18 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_19 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_20 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_21 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTar.test_22 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTcpdump.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTcpkill.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTcpnice.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTee.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestTee.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestTexindex.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestTightvncviewer.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestTime.test_command ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTime.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTime.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTimeout.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTimeout.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTipc.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestTotem.test_basic ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestTouch.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTox.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTox.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTox.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestTox.test_default_after_dashdash _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestTr.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestTracepath.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestTracepath.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTshark.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestTshark.test_input_files _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestTsigKeygen.test_basic __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestTsigKeygen.test_options _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTune2fs.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestTune2fs.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUdevadm.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUdevadm.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_4 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_5 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_6 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUlimit.test_7 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUmount.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUmount.test_mnt_basic __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUmount.test_mnt_space __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUmount.test_mnt_dollar _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUmount.test_mnt_backslash ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUmount.test_mnt_after_space _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUmount.test_mnt_at_dollar ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUmount.test_mnt_at_quote ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUmount.test_mnt_other __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUmount.test_mnt_label_space _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUmount.test_mnt_label_quote _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestUmount.test_linux_fstab_unescape ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUnace.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUname.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnexpand.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUniq.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUnits.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnpack200.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUnrar.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUnset.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUnshunt.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUpdateAlternatives.test_1 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUpdateRcD.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUpgradepkg.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUpgradepkg.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUpgradepkg.test_4 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUpgradepkg.test_after_percent ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUrlsnarf.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestUscan.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUseradd.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUseradd.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUseradd.test_chroot_shells _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUserdel.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUserdel.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUsermod.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestUsermod.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUsermod.test_chroot_shells _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestValgrind.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestValgrind.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestValgrind.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestValgrind.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestValgrind.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestVdir.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestVdir.test_options ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestVgcfgbackup.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestVgcfgrestore.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgchange.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestVgck.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgconvert.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgcreate.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgcreate.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgdisplay.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgexport.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgextend.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgimport.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestVgmerge.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgmknodes.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgreduce.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgremove.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVgrename.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestVgs.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestVgscan.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestVgsplit.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestVi.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestVi.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestVipw.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestVmstat.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestVncviewer.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestVpnc.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWatch.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWc.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestWebmitm.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWget.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWget.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWho.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWine.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWine.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestWine.test_no_complete_after_help ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestWithlist.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWodim.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWol.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWol.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWol.test_3 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestWrite.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestWsimport.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestWsimport.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestWtf.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestWvdial.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXdgMime.test_6 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXdgSettings.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXdgSettings.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXdgSettings.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_3 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_4 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_5 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_6 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXfreerdp.test_7 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestXfreerdp.test_rdp_files _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXgamma.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXgamma.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestXhost.test_hosts[+] ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestXhost.test_hosts[-] ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXhost.test_hosts[] ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestXhost.test_partial_hosts[+] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestXhost.test_partial_hosts[-] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXhost.test_partial_hosts[] _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXm.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXmllint.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXmllint.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXmlwf.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXmlwf.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXmms.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXmms.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXmodmap.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXmodmap.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestXpovray.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestXrandr.test_no_args ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestXrandr.test_single_dash _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXrandr.test_output ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_output_left_of _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_output_reflect _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestXrandr.test_output_reflect_nooutput ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_output_rotate ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________ ERROR at setup of TestXrandr.test_output_rotate_nooutput ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_output_filter ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestXrandr.test_output_mode _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestXrandr.test_output_mode_nooutput ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_addmode_first ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_addmode_second _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_delmode_first ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestXrandr.test_delmode_second _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXrandr.test_dpi _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestXrandr.test_orientation _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestXrandr.test_setmonitor_second ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestXrandr.test_setmonitor_third ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestXrandr.test_delmonitor _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestXrandr.test_setprovideroutputsource_first ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestXrandr.test_setprovideroutputsource_second _______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________ ERROR at setup of TestXrandr.test_setprovideroffloadsink_first ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestXrandr.test_setprovideroffloadsink_second ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXrdb.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXrdb.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXsltproc.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestXsltproc.test_2 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestXvfbRun.test_no_args __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestXvfbRun.test_options __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXvnc4viewer.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXvnc4viewer.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestXvnc4viewer.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXxd.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXxd.test_2 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXz.test_1 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXz.test_2 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXz.test_3 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXz.test_4 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestXz.test_5 ________________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXzdec.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestXzdec.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________________ ERROR at setup of TestYpcat.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestYpmatch.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________________ ERROR at setup of TestYum.test_1 _______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestYumArch.test_1 _____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestZopfli.test_1 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestZopfli.test_2 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________________ ERROR at setup of TestZopfli.test_3 ______________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestZopflipng.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestZopflipng.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_2 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_3 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_4 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_5 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_6 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_7 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_8 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitCountArgs.test_9 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitExpand.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitExpand.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitExpand.test_user_home_compreply ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitExpand.test_user_home_cur ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitExpandTildeByRef.test_1 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitExpandTildeByRef.test_2 _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded0-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded0-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded1-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded1-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded2-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded2-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded3-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded3-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded4-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded4-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded5-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded5-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded6-True] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitExpandTildeByRef.test_expand[suffix_expanded6-False] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitFiledir.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_2[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_2[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_3[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_3[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_4[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_4[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_5[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_5[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_6[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_6[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_7[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_7[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_8[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_8[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_9[f] __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_9[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_10[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_10[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_11[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_11[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_12[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_12[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_13[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_13[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_14[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_14[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitFiledir.test_15 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitFiledir.test_16 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_17[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_17[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_18[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_18[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_19[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_19[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_20[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_20[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_21[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_21[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_22[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_22[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_23[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_23[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_24[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_24[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_25[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_25[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitFiledir.test_26[f] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitFiledir.test_26[f2] _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_1 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_2 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_3 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_4 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_5 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_6 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_7 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_8 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitGetCompWordsByRef.test_9 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_10 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_11 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_12 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_13 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_14 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_15 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_16 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_17 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_18 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_19 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_20 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_21 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_22 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_23 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_24 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_25 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_26 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_27 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_28 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_29 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_30 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_31 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_32 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_33 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_34 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitGetCompWordsByRef.test_35 ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______ ERROR at setup of TestUnitGetCompWordsByRef.test_unknown_arg_error ______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_4 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_5 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_6 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_7 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_8 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_9 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_10 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_11 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_12 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_13 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_14 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_15 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_16 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_17 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_18 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_19 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_20 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_21 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_22 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitGetCword.test_23 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUnitInitCompletion.test_1 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUnitInitCompletion.test_2 ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitInitCompletion.test_redirect[>] ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitInitCompletion.test_redirect[>>] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitInitCompletion.test_redirect[2>] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitInitCompletion.test_redirect[<] ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitInitCompletion.test_redirect[&>] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitIpAddresses.test_1 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitIpAddresses.test_2 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitIpAddresses.test_3 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitIpAddresses.test_4 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________ ERROR at setup of TestUnitKnownHostsReal.test_basic[--True] __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________ ERROR at setup of TestUnitKnownHostsReal.test_basic[--False] _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______ ERROR at setup of TestUnitKnownHostsReal.test_basic[user@-c-True] _______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitKnownHostsReal.test_ip_filtering[4-127.0.0.1 localhost] _ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _ ERROR at setup of TestUnitKnownHostsReal.test_ip_filtering[6-::1 localhost] __ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___ ERROR at setup of TestUnitKnownHostsReal.test_ip_filtering[46-localhost] ___ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestUnitKnownHostsReal.test_consecutive_spaces _______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___ ERROR at setup of TestUnitKnownHostsReal.test_files_starting_with_tilde ____ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________ ERROR at setup of TestUnitKnownHostsReal.test_included_configs ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________ ERROR at setup of TestUnitKnownHostsReal.test_no_globbing ___________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitLongopt.test_1 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitLongopt.test_2 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitLongopt.test_3 ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestUnitLongopt.test_no_dashdashdash ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________ ERROR at setup of TestUnitLongopt.test_no_trailingdash ____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitLongopt.test_underscore _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________________ ERROR at setup of TestUnitLongopt.test_equals _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_2 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_3 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_4 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_5 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_6 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_7 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_8 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitParseHelp.test_9 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_10 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_11 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_12 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_13 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_14 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_15 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_16 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_17 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_18 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_19 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_20 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_21 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_22 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_23 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_24 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_25 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_26 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_27 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_28 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_29 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_30 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_31 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseHelp.test_32 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_1 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_2 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_3 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_4 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_5 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_6 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_7 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_8 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_9 __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_10 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_11 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitParseUsage.test_12 _________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitPgids.test_smoke __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitPgids.test_non_pollution ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitPgids.test_ints ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError __________________ ERROR at setup of TestUnitPids.test_smoke ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitPids.test_non_pollution _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ___________________ ERROR at setup of TestUnitPids.test_ints ___________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________________ ERROR at setup of TestUnitPnames.test_smoke __________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitPnames.test_non_pollution ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______________ ERROR at setup of TestUnitPnames.test_something ________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitQuote.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitQuote.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitQuote.test_3 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitQuote.test_4 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitQuote.test_5 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______________ ERROR at setup of TestUnitQuoteReadline.test_exec _______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________ ERROR at setup of TestUnitQuoteReadline.test_env_non_pollution ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitTilde.test_1 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitTilde.test_2 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitTilde.test_3 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitTilde.test_4 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ____________________ ERROR at setup of TestUnitTilde.test_5 ____________________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ________ ERROR at setup of TestUnitVariables.test_simple_variable_name _________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _________ ERROR at setup of TestUnitVariables.test_single_array_index __________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestUnitVariables.test_multiple_array_indexes ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____ ERROR at setup of TestUnitVariables.test_closing_curly_after_square ______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError ______ ERROR at setup of TestUnitVariables.test_closing_brackets_after_at ______ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitVariables.test_hash_prefix _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitXinetdServices.test_direct _____________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _______ ERROR at setup of TestUnitXinetdServices.test_env_non_pollution ________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError _____________ ERROR at setup of TestUnitXinetdServices.test_basic ______________ request = > @pytest.fixture(scope="class") def bash(request) -> pexpect.spawn: logfile = None if os.environ.get("BASHCOMP_TEST_LOGFILE"): logfile = open(os.environ["BASHCOMP_TEST_LOGFILE"], "w") elif os.environ.get("CI"): logfile = sys.stdout testdir = os.path.abspath( os.path.join(os.path.dirname(__file__), os.pardir) ) env = os.environ.copy() env.update( dict( SRCDIR=testdir, # TODO needed at least by bashrc SRCDIRABS=testdir, # TODO needed? PS1=PS1, INPUTRC="%s/config/inputrc" % testdir, TERM="dumb", LC_COLLATE="C", # to match Python's default locale unaware sort ) ) fixturesdir = os.path.join(testdir, "fixtures") os.chdir(fixturesdir) # Start bash > bash = pexpect.spawn( "%s --norc" % os.environ.get("BASHCOMP_TEST_BASH", "bash"), maxread=os.environ.get("BASHCOMP_TEST_PEXPECT_MAXREAD", 20000), logfile=logfile, cwd=fixturesdir, env=env, encoding="utf-8", # TODO? or native or...? # FIXME: Tests shouldn't depend on dimensions, but it's difficult to # expect robustly enough for Bash to wrap lines anywhere (e.g. inside # MAGIC_MARK). Increase window width to reduce wrapping. dimensions=(24, 160), # TODO? codec_errors="replace", ) /usr/src/RPM/BUILD/bash-completion-2.11/test/t/conftest.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pexpect/pty_spawn.py:205: in __init__ self._spawn(command, args, preexec_fn, dimensions) /usr/lib/python3/site-packages/pexpect/pty_spawn.py:303: in _spawn self.ptyproc = self._spawnpty(self.args, env=self.env, /usr/lib/python3/site-packages/pexpect/pty_spawn.py:315: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = argv = [b'/bin/bash', b'--norc'] cwd = '/usr/src/RPM/BUILD/bash-completion-2.11/test/fixtures' env = {'ABS_TOP_BUILDDIR': '/usr/src/RPM/BUILD/bash-completion-2.11', 'G_BROKEN_FILENAMES': '1', 'HISTFILESIZE': '9999', 'HISTSIZE': '999', ...} echo = True, preexec_fn = None, dimensions = (24, 160), pass_fds = () @classmethod def spawn( cls, argv, cwd=None, env=None, echo=True, preexec_fn=None, dimensions=(24, 80), pass_fds=()): '''Start the given command in a child process in a pseudo terminal. This does all the fork/exec type of stuff for a pty, and returns an instance of PtyProcess. If preexec_fn is supplied, it will be called with no arguments in the child process before exec-ing the specified command. It may, for instance, set signal handlers to SIG_DFL or SIG_IGN. Dimensions of the psuedoterminal used for the subprocess can be specified as a tuple (rows, cols), or the default (24, 80) will be used. By default, all file descriptors except 0, 1 and 2 are closed. This behavior can be overridden with pass_fds, a list of file descriptors to keep open between the parent and the child. ''' # Note that it is difficult for this method to fail. # You cannot detect if the child process cannot start. # So the only way you can tell if the child process started # or not is to try to read from the file descriptor. If you get # EOF immediately then it means that the child is already dead. # That may not necessarily be bad because you may have spawned a child # that performs some task; creates no stdout output; and then dies. if not isinstance(argv, (list, tuple)): raise TypeError("Expected a list or tuple for argv, got %r" % argv) # Shallow copy of argv so we can modify it argv = argv[:] command = argv[0] command_with_path = which(command) if command_with_path is None: raise FileNotFoundError('The command was not found or was not ' + 'executable: %s.' % command) command = command_with_path argv[0] = command # [issue #119] To prevent the case where exec fails and the user is # stuck interacting with a python child process instead of whatever # was expected, we implement the solution from # http://stackoverflow.com/a/3703179 to pass the exception to the # parent process # [issue #119] 1. Before forking, open a pipe in the parent process. > exec_err_pipe_read, exec_err_pipe_write = os.pipe() E OSError: [Errno 24] Too many open files /usr/lib/python3/site-packages/ptyprocess/ptyprocess.py:227: OSError =========================== short test summary info ============================ ERROR test_2to3.py::Test2to3::test_1 - OSError: out of pty devices ERROR test_2to3.py::Test2to3::test_2 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_1 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_2 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_3 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_4 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_5 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_6 - OSError: out of pty devices ERROR test_7z.py::Test7z::test_7 - OSError: out of pty devices ERROR test_a2ps.py::TestA2ps::test_1 - OSError: out of pty devices ERROR test_a2ps.py::TestA2ps::test_options - OSError: out of pty devices ERROR test_a2x.py::TestA2x::test_1 - OSError: out of pty devices ERROR test_a2x.py::TestA2x::test_2 - OSError: out of pty devices ERROR test_abook.py::TestAbook::test_1 - OSError: out of pty devices ERROR test_aclocal.py::TestAclocal::test_1 - OSError: out of pty devices ERROR test_aclocal.py::TestAclocal::test_2 - OSError: out of pty devices ERROR test_acpi.py::TestAcpi::test_1 - OSError: out of pty devices ERROR test_acroread.py::TestAcroread::test_1 - OSError: out of pty devices ERROR test_adb.py::TestAdb::test_1 - OSError: out of pty devices ERROR test_adb.py::TestAdb::test_2 - OSError: out of pty devices ERROR test_add_members.py::TestAddMembers::test_1 - OSError: out of pty devices ERROR test_alias.py::TestAlias::test_1 - OSError: out of pty devices ERROR test_alias.py::TestAlias::test_alias_at_point - OSError: out of pty dev... ERROR test_alpine.py::TestAlpine::test_1 - OSError: out of pty devices ERROR test_animate.py::TestAnimate::test_1 - OSError: out of pty devices ERROR test_ant.py::TestAnt::test_1 - OSError: out of pty devices ERROR test_ant.py::TestAnt::test_2 - OSError: out of pty devices ERROR test_ant.py::TestAnt::test_3 - OSError: out of pty devices ERROR test_ant.py::TestAnt::test_4 - OSError: out of pty devices ERROR test_ant.py::TestAnt::test_5 - OSError: out of pty devices ERROR test_apache2ctl.py::TestApache2ctl::test_1 - OSError: out of pty devices ERROR test_appdata_validate.py::TestAppdataValidate::test_1 - OSError: out of... ERROR test_appdata_validate.py::TestAppdataValidate::test_2 - OSError: out of... ERROR test_apt_build.py::TestAptBuild::test_1 - OSError: out of pty devices ERROR test_apt_cache.py::TestAptCache::test_1 - OSError: out of pty devices ERROR test_apt_cache.py::TestAptCache::test_2 - OSError: out of pty devices ERROR test_apt_cache.py::TestAptCache::test_special_at_point - OSError: out o... ERROR test_apt_get.py::TestAptGet::test_1 - OSError: out of pty devices ERROR test_apt_get.py::TestAptGet::test_2 - OSError: out of pty devices ERROR test_apt_get.py::TestAptGet::test_build_dep_dirs - OSError: out of pty ... ERROR test_apt_mark.py::TestAptMark::test_1 - OSError: out of pty devices ERROR test_apt_mark.py::TestAptMark::test_2 - OSError: out of pty devices ERROR test_apt_mark.py::TestAptMark::test_3 - OSError: out of pty devices ERROR test_apt_mark.py::TestAptMark::test_4 - OSError: out of pty devices ERROR test_apt_mark.py::TestAptMark::test_5 - OSError: out of pty devices ERROR test_aptitude.py::TestAptitude::test_1 - OSError: out of pty devices ERROR test_aptitude.py::TestAptitude::test_options - OSError: out of pty devices ERROR test_aptitude.py::TestAptitude::test_long_options - OSError: out of pty... ERROR test_aptitude.py::TestAptitude::test_no_i_with_u - OSError: out of pty ... ERROR test_aptitude.py::TestAptitude::test_no_u_with_i - OSError: out of pty ... ERROR test_arch.py::TestArch::test_1 - OSError: out of pty devices ERROR test_arp.py::TestArp::test_1 - OSError: out of pty devices ERROR test_arp.py::TestArp::test_2 - OSError: out of pty devices ERROR test_arping.py::TestArping::test_1 - OSError: out of pty devices ERROR test_arping.py::TestArping::test_2 - OSError: out of pty devices ERROR test_arpspoof.py::TestArpspoof::test_1 - OSError: out of pty devices ERROR test_asciidoc.py::TestAsciidoc::test_1 - OSError: out of pty devices ERROR test_asciidoc.py::TestAsciidoc::test_2 - OSError: out of pty devices ERROR test_aspell.py::TestAspell::test_1 - OSError: out of pty devices ERROR test_autoconf.py::TestAutoconf::test_1 - OSError: out of pty devices ERROR test_autoheader.py::TestAutoheader::test_1 - OSError: out of pty devices ERROR test_automake.py::TestAutomake::test_1 - OSError: out of pty devices ERROR test_automake.py::TestAutomake::test_2 - OSError: out of pty devices ERROR test_autoreconf.py::TestAutoreconf::test_1 - OSError: out of pty devices ERROR test_autorpm.py::TestAutorpm::test_1 - OSError: out of pty devices ERROR test_autoscan.py::TestAutoscan::test_1 - OSError: out of pty devices ERROR test_autoscan.py::TestAutoscan::test_2 - OSError: out of pty devices ERROR test_autossh.py::TestAutossh::test_1 - OSError: out of pty devices ERROR test_autoupdate.py::TestAutoupdate::test_1 - OSError: out of pty devices ERROR test_avahi_browse.py::TestAvahiBrowse::test_options - OSError: out of p... ERROR test_avahi_browse.py::TestAvahiBrowse::test_service_types - OSError: ou... ERROR test_avahi_browse.py::TestAvahiBrowse::test_no_service_type_with_a - OS... ERROR test_avctrl.py::TestAvctrl::test_1 - OSError: out of pty devices ERROR test_awk.py::TestAwk::test_1 - OSError: out of pty devices ERROR test_awk.py::TestAwk::test_options - OSError: out of pty devices ERROR test_badblocks.py::TestBadblocks::test_1 - OSError: out of pty devices ERROR test_badblocks.py::TestBadblocks::test_2 - OSError: out of pty devices ERROR test_base64.py::TestBase64::test_1 - OSError: out of pty devices ERROR test_base64.py::TestBase64::test_options - OSError: out of pty devices ERROR test_bash.py::TestBash::test_1 - OSError: out of pty devices ERROR test_bc.py::TestBc::test_1 - OSError: out of pty devices ERROR test_bind.py::TestBind::test_1 - OSError: out of pty devices ERROR test_bind.py::TestBind::test_2 - OSError: out of pty devices ERROR test_bison.py::TestBison::test_1 - OSError: out of pty devices ERROR test_bk.py::TestBk::test_1 - OSError: out of pty devices ERROR test_bmake.py::TestBmake::test_options - OSError: out of pty devices ERROR test_brctl.py::TestBrctl::test_1 - OSError: out of pty devices ERROR test_bsdtar.py::TestBsdtar::test_readable_archives - OSError: out of pt... ERROR test_bsdtar.py::TestBsdtar::test_writable_archives - OSError: out of pt... ERROR test_btdownloadcurses_py.py::TestBtdownloadcursesPy::test_1 - OSError: ... ERROR test_btdownloadgui_py.py::TestBtdownloadguiPy::test_1 - OSError: out of... ERROR test_btdownloadheadless_py.py::TestBtdownloadheadlessPy::test_1 - OSErr... ERROR test_bts.py::TestBts::test_1 - OSError: out of pty devices ERROR test_bts.py::TestBts::test_2 - OSError: out of pty devices ERROR test_bzip2.py::TestBzip2::test_1 - OSError: out of pty devices ERROR test_bzip2.py::TestBzip2::test_2 - OSError: out of pty devices ERROR test_bzip2.py::TestBzip2::test_3 - OSError: out of pty devices ERROR test_cal.py::TestCal::test_1 - OSError: out of pty devices ERROR test_cal.py::TestCal::test_2 - OSError: out of pty devices ERROR test_cancel.py::TestCancel::test_1 - OSError: out of pty devices ERROR test_cardctl.py::TestCardctl::test_1 - OSError: out of pty devices ERROR test_carton.py::TestCarton::test_commands - OSError: out of pty devices ERROR test_carton.py::TestCarton::test_install_options - OSError: out of pty ... ERROR test_cat.py::TestCat::test_1 - OSError: out of pty devices ERROR test_cat.py::TestCat::test_options - OSError: out of pty devices ERROR test_cc.py::TestCc::test_1 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_1 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_2 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_3 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_4 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_5 - OSError: out of pty devices ERROR test_ccache.py::TestCcache::test_6 - OSError: out of pty devices ERROR test_ccze.py::TestCcze::test_1 - OSError: out of pty devices ERROR test_ccze.py::TestCcze::test_2 - OSError: out of pty devices ERROR test_ccze.py::TestCcze::test_3 - OSError: out of pty devices ERROR test_ccze.py::TestCcze::test_4 - OSError: out of pty devices ERROR test_cd.py::TestCd::test_1 - OSError: out of pty devices ERROR test_cd.py::TestCd::test_2 - OSError: out of pty devices ERROR test_cd.py::TestCd::test_3 - OSError: out of pty devices ERROR test_cd.py::TestCd::test_4 - OSError: out of pty devices ERROR test_cd.py::TestCd::test_dir_at_point - OSError: out of pty devices ERROR test_cdrecord.py::TestCdrecord::test_1 - OSError: out of pty devices ERROR test_cfagent.py::TestCfagent::test_1 - OSError: out of pty devices ERROR test_cfrun.py::TestCfrun::test_1 - OSError: out of pty devices ERROR test_chage.py::TestChage::test_1 - OSError: out of pty devices ERROR test_chage.py::TestChage::test_2 - OSError: out of pty devices ERROR test_change_pw.py::TestChangePw::test_1 - OSError: out of pty devices ERROR test_check_db.py::TestCheckDb::test_1 - OSError: out of pty devices ERROR test_check_perms.py::TestCheckPerms::test_1 - OSError: out of pty devices ERROR test_checksec.py::TestChecksec::test_1 - OSError: out of pty devices ERROR test_chfn.py::TestChfn::test_1 - OSError: out of pty devices ERROR test_chgrp.py::TestChgrp::test_1 - OSError: out of pty devices ERROR test_chkconfig.py::TestChkconfig::test_1 - OSError: out of pty devices ERROR test_chkconfig.py::TestChkconfig::test_2 - OSError: out of pty devices ERROR test_chmod.py::TestChmod::test_1 - OSError: out of pty devices ERROR test_chmod.py::TestChmod::test_2 - OSError: out of pty devices ERROR test_chmod.py::TestChmod::test_3 - OSError: out of pty devices ERROR test_chmod.py::TestChmod::test_4 - OSError: out of pty devices ERROR test_chmod.py::TestChmod::test_5 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_2 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_3 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_4 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_5 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_6 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_7[funky\\ user:] - OSError: out of pty d... ERROR test_chown.py::TestChown::test_7[funky.user:] - OSError: out of pty dev... ERROR test_chown.py::TestChown::test_7[funky\\.user:] - OSError: out of pty d... ERROR test_chown.py::TestChown::test_7[fu\\ nky.user:] - OSError: out of pty ... ERROR test_chown.py::TestChown::test_7[f\\ o\\ o\\.\\bar:] - OSError: out of ... ERROR test_chown.py::TestChown::test_7[foo\\_b\\ a\\.r\\ :] - OSError: out of... ERROR test_chown.py::TestChown::test_8 - OSError: out of pty devices ERROR test_chown.py::TestChown::test_9 - OSError: out of pty devices ERROR test_chpasswd.py::TestChpasswd::test_1 - OSError: out of pty devices ERROR test_chromium_browser.py::TestChromiumBrowser::test_1 - OSError: out of... ERROR test_chromium_browser.py::TestChromiumBrowser::test_2 - OSError: out of... ERROR test_chromium_browser.py::TestChromiumBrowser::test_proxy_server_scheme ERROR test_chromium_browser.py::TestChromiumBrowser::test_proxy_server_host ERROR test_chronyc.py::TestChronyc::test_1 - OSError: out of pty devices ERROR test_chronyc.py::TestChronyc::test_2 - OSError: out of pty devices ERROR test_chroot.py::TestChroot::test_1 - OSError: out of pty devices ERROR test_chroot.py::TestChroot::test_2 - OSError: out of pty devices ERROR test_chroot.py::TestChroot::test_options - OSError: out of pty devices ERROR test_chrpath.py::TestChrpath::test_1 - OSError: out of pty devices ERROR test_chrpath.py::TestChrpath::test_2 - OSError: out of pty devices ERROR test_chsh.py::TestChsh::test_1 - OSError: out of pty devices ERROR test_chsh.py::TestChsh::test_shells - OSError: out of pty devices ERROR test_chsh.py::TestChsh::test_3 - OSError: out of pty devices ERROR test_chsh.py::TestChsh::test_chroot_shells - OSError: out of pty devices ERROR test_ci.py::TestCi::test_1 - OSError: out of pty devices ERROR test_ciptool.py::TestCiptool::test_1 - OSError: out of pty devices ERROR test_civclient.py::TestCivclient::test_1 - OSError: out of pty devices ERROR test_civserver.py::TestCivserver::test_1 - OSError: out of pty devices ERROR test_cksfv.py::TestCksfv::test_1 - OSError: out of pty devices ERROR test_cleanarch.py::TestCleanarch::test_1 - OSError: out of pty devices ERROR test_clisp.py::TestClisp::test_1 - OSError: out of pty devices ERROR test_clone_member.py::TestCloneMember::test_1 - OSError: out of pty dev... ERROR test_co.py::TestCo::test_1 - OSError: out of pty devices ERROR test_colordiff.py::TestColordiff::test_basic - OSError: out of pty devices ERROR test_colordiff.py::TestColordiff::test_options - OSError: out of pty de... ERROR test_compare.py::TestCompare::test_1 - OSError: out of pty devices ERROR test_compgen.py::TestCompgen::test_1 - OSError: out of pty devices ERROR test_complete.py::TestComplete::test_1 - OSError: out of pty devices ERROR test_complete.py::TestComplete::test_2 - OSError: out of pty devices ERROR test_composite.py::TestComposite::test_1 - OSError: out of pty devices ERROR test_config_list.py::TestConfigList::test_1 - OSError: out of pty devices ERROR test_configure.py::TestConfigure::test_1 - OSError: out of pty devices ERROR test_configure.py::TestConfigure::test_2 - OSError: out of pty devices ERROR test_conjure.py::TestConjure::test_1 - OSError: out of pty devices ERROR test_convert.py::TestConvert::test_1 - OSError: out of pty devices ERROR test_convert.py::TestConvert::test_2 - OSError: out of pty devices ERROR test_convert.py::TestConvert::test_3 - OSError: out of pty devices ERROR test_cowsay.py::TestCowsay::test_1 - OSError: out of pty devices ERROR test_cp.py::TestCp::test_1 - OSError: out of pty devices ERROR test_cp.py::TestCp::test_options - OSError: out of pty devices ERROR test_cpan2dist.py::TestCpan2dist::test_1 - OSError: out of pty devices ERROR test_cpio.py::TestCpio::test_1 - OSError: out of pty devices ERROR test_cpio.py::TestCpio::test_2 - OSError: out of pty devices ERROR test_cplusplus.py::TestCPlusPlus::test_1 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_1 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_2 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_3 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_4 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_5 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_6 - OSError: out of pty devices ERROR test_cppcheck.py::TestCppcheck::test_7 - OSError: out of pty devices ERROR test_createdb.py::TestCreatedb::test_1 - OSError: out of pty devices ERROR test_createuser.py::TestCreateuser::test_1 - OSError: out of pty devices ERROR test_crontab.py::TestCrontab::test_1 - OSError: out of pty devices ERROR test_crontab.py::TestCrontab::test_only_u_with_l - OSError: out of pty ... ERROR test_crontab.py::TestCrontab::test_no_l_with_r - OSError: out of pty de... ERROR test_cryptsetup.py::TestCryptsetup::test_1 - OSError: out of pty devices ERROR test_cryptsetup.py::TestCryptsetup::test_2 - OSError: out of pty devices ERROR test_csplit.py::TestCsplit::test_1 - OSError: out of pty devices ERROR test_csplit.py::TestCsplit::test_options - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_1 - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_2 - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_3 - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_4 - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_data_atfile - OSError: out of pty devices ERROR test_curl.py::TestCurl::test_data_atfile_dir - OSError: out of pty devices ERROR test_cut.py::TestCut::test_1 - OSError: out of pty devices ERROR test_cut.py::TestCut::test_options - OSError: out of pty devices ERROR test_cvs.py::TestCvs::test_1 - OSError: out of pty devices ERROR test_cvs.py::TestCvs::test_2 - OSError: out of pty devices ERROR test_cvs.py::TestCvs::test_3 - OSError: out of pty devices ERROR test_cvs.py::TestCvs::test_4 - OSError: out of pty devices ERROR test_cvsps.py::TestCvsps::test_1 - OSError: out of pty devices ERROR test_cvsps.py::TestCvsps::test_2 - OSError: out of pty devices ERROR test_date.py::TestDate::test_1 - OSError: out of pty devices ERROR test_date.py::TestDate::test_options - OSError: out of pty devices ERROR test_dcop.py::TestDcop::test_1 - OSError: out of pty devices ERROR test_dd.py::TestDd::test_1 - OSError: out of pty devices ERROR test_dd.py::TestDd::test_2 - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_1 - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_2 - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_3 - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_4 - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_arrayvar - OSError: out of pty devices ERROR test_declare.py::TestDeclare::test_no_arrayvar_for_f - OSError: out of ... ERROR test_declare.py::TestDeclare::test_no_arrayvar_for_i - OSError: out of ... ERROR test_deja_dup.py::TestDejaDup::test_1 - OSError: out of pty devices ERROR test_deja_dup.py::TestDejaDup::test_2 - OSError: out of pty devices ERROR test_desktop_file_validate.py::TestDesktopFileValidate::test_1 - OSErro... ERROR test_desktop_file_validate.py::TestDesktopFileValidate::test_2 - OSErro... ERROR test_df.py::TestDf::test_1 - OSError: out of pty devices ERROR test_df.py::TestDf::test_options - OSError: out of pty devices ERROR test_dfutool.py::TestDfutool::test_1 - OSError: out of pty devices ERROR test_dhclient.py::TestDhclient::test_1 - OSError: out of pty devices ERROR test_dict.py::TestDict::test_1 - OSError: out of pty devices ERROR test_diff.py::TestDiff::test_1 - OSError: out of pty devices ERROR test_dir.py::TestDir::test_1 - OSError: out of pty devices ERROR test_dir.py::TestDir::test_options - OSError: out of pty devices ERROR test_display.py::TestDisplay::test_1 - OSError: out of pty devices ERROR test_display.py::TestDisplay::test_2 - OSError: out of pty devices ERROR test_dmesg.py::TestDmesg::test_1 - OSError: out of pty devices ERROR test_dmypy.py::TestDmypy::test_commands - OSError: out of pty devices ERROR test_dmypy.py::TestDmypy::test_options - OSError: out of pty devices ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_1 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_2 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_3 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_4 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_5 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_6 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_7 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_8 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_9 - OSError: out of pty d... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_10 - OSError: out of pty ... ERROR test_dnssec_keygen.py::TestDnssecKeygen::test_11 - OSError: out of pty ... ERROR test_dnsspoof.py::TestDnsspoof::test_1 - OSError: out of pty devices ERROR test_dot.py::TestDot::test_1 - OSError: out of pty devices ERROR test_dpkg.py::TestDpkg::test_1 - OSError: out of pty devices ERROR test_dpkg.py::TestDpkg::test_2 - OSError: out of pty devices ERROR test_dpkg.py::TestDpkg::test_3 - OSError: out of pty devices ERROR test_dpkg.py::TestDpkg::test_i_deb - OSError: out of pty devices ERROR test_dpkg_deb.py::TestDpkgDeb::test_1 - OSError: out of pty devices ERROR test_dpkg_deb.py::TestDpkgDeb::test_show - OSError: out of pty devices ERROR test_dpkg_query.py::TestDpkgQuery::test_options - OSError: out of pty d... ERROR test_dpkg_reconfigure.py::TestDpkgReconfigure::test_1 - OSError: out of... ERROR test_dpkg_source.py::TestDpkgSource::test_1 - OSError: out of pty devices ERROR test_dropdb.py::TestDropdb::test_1 - OSError: out of pty devices ERROR test_dropuser.py::TestDropuser::test_1 - OSError: out of pty devices ERROR test_dselect.py::TestDselect::test_1 - OSError: out of pty devices ERROR test_dselect.py::TestDselect::test_2 - OSError: out of pty devices ERROR test_dsniff.py::TestDsniff::test_1 - OSError: out of pty devices ERROR test_du.py::TestDu::test_1 - OSError: out of pty devices ERROR test_du.py::TestDu::test_options - OSError: out of pty devices ERROR test_dumpdb.py::TestDumpdb::test_1 - OSError: out of pty devices ERROR test_dumpe2fs.py::TestDumpe2fs::test_1 - OSError: out of pty devices ERROR test_dumpe2fs.py::TestDumpe2fs::test_2 - OSError: out of pty devices ERROR test_e2freefrag.py::TestE2freefrag::test_1 - OSError: out of pty devices ERROR test_e2freefrag.py::TestE2freefrag::test_2 - OSError: out of pty devices ERROR test_e2label.py::TestE2label::test_1 - OSError: out of pty devices ERROR test_ebtables.py::TestEbtables::test_1 - OSError: out of pty devices ERROR test_ecryptfs_migrate_home.py::TestEcryptfsMigrateHome::test_1 - OSErro... ERROR test_ecryptfs_migrate_home.py::TestEcryptfsMigrateHome::test_2 - OSErro... ERROR test_eject.py::TestEject::test_1 - OSError: out of pty devices ERROR test_enscript.py::TestEnscript::test_1 - OSError: out of pty devices ERROR test_env.py::TestEnv::test_1 - OSError: out of pty devices ERROR test_eog.py::TestEog::test_1 - OSError: out of pty devices ERROR test_eog.py::TestEog::test_2 - OSError: out of pty devices ERROR test_ether_wake.py::TestEtherWake::test_1 - OSError: out of pty devices ERROR test_ether_wake.py::TestEtherWake::test_2 - OSError: out of pty devices ERROR test_etherwake.py::TestEtherwake::test_1 - OSError: out of pty devices ERROR test_evince.py::TestEvince::test_1 - OSError: out of pty devices ERROR test_evince.py::TestEvince::test_2 - OSError: out of pty devices ERROR test_expand.py::TestExpand::test_1 - OSError: out of pty devices ERROR test_explodepkg.py::TestExplodepkg::test_1 - OSError: out of pty devices ERROR test_export.py::TestExport::test_1 - OSError: out of pty devices ERROR test_export.py::TestExport::test_2 - OSError: out of pty devices ERROR test_export.py::TestExport::test_3 - OSError: out of pty devices ERROR test_export.py::TestExport::test_4 - OSError: out of pty devices ERROR test_export.py::TestExport::test_5 - OSError: out of pty devices ERROR test_export.py::TestExport::test_6 - OSError: out of pty devices ERROR test_export.py::TestExport::test_7 - OSError: out of pty devices ERROR test_export.py::TestExport::test_8 - OSError: out of pty devices ERROR test_faillog.py::TestFaillog::test_1 - OSError: out of pty devices ERROR test_fbgs.py::TestFbgs::test_1 - OSError: out of pty devices ERROR test_fbi.py::TestFbi::test_1 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_1 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_2 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_3 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_4 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_5 - OSError: out of pty devices ERROR test_feh.py::TestFeh::test_6 - OSError: out of pty devices ERROR test_file.py::TestFile::test_1 - OSError: out of pty devices ERROR test_file.py::TestFile::test_2 - OSError: out of pty devices ERROR test_file_roller.py::TestFileRoller::test_1 - OSError: out of pty devices ERROR test_filefrag.py::TestFilefrag::test_1 - OSError: out of pty devices ERROR test_filefrag.py::TestFilefrag::test_2 - OSError: out of pty devices ERROR test_filesnarf.py::TestFilesnarf::test_1 - OSError: out of pty devices ERROR test_find.py::TestFind::test_1 - OSError: out of pty devices ERROR test_find.py::TestFind::test_2 - OSError: out of pty devices ERROR test_find.py::TestFind::test_3 - OSError: out of pty devices ERROR test_find.py::TestFind::test_4 - OSError: out of pty devices ERROR test_find.py::TestFind::test_5 - OSError: out of pty devices ERROR test_find.py::TestFind::test_6 - OSError: out of pty devices ERROR test_find.py::TestFind::test_exec - OSError: out of pty devices ERROR test_find.py::TestFind::test_exec_args - OSError: out of pty devices ERROR test_find_member.py::TestFindMember::test_1 - OSError: out of pty devices ERROR test_finger.py::TestFinger::test_1 - OSError: out of pty devices ERROR test_finger.py::TestFinger::test_2 - OSError: out of pty devices ERROR test_finger.py::TestFinger::test_partial_hostname - OSError: out of pty... ERROR test_fio.py::TestFio::test_1 - OSError: out of pty devices ERROR test_fio.py::TestFio::test_2 - OSError: out of pty devices ERROR test_fio.py::TestFio::test_3 - OSError: out of pty devices ERROR test_firefox.py::TestFirefox::test_1 - OSError: out of pty devices ERROR test_firefox.py::TestFirefox::test_2 - OSError: out of pty devices ERROR test_flake8.py::TestFlake8::test_1 - OSError: out of pty devices ERROR test_flake8.py::TestFlake8::test_2 - OSError: out of pty devices ERROR test_flake8.py::TestFlake8::test_3 - OSError: out of pty devices ERROR test_fmt.py::TestFmt::test_1 - OSError: out of pty devices ERROR test_fold.py::TestFold::test_1 - OSError: out of pty devices ERROR test_freebsd_update.py::TestFreebsdUpdate::test_1 - OSError: out of pty... ERROR test_freeciv.py::TestFreeciv::test_1 - OSError: out of pty devices ERROR test_freeciv_server.py::TestFreecivServer::test_1 - OSError: out of pty... ERROR test_function.py::TestFunction::test_1 - OSError: out of pty devices ERROR test_fusermount.py::TestFusermount::test_1 - OSError: out of pty devices ERROR test_fusermount.py::TestFusermount::test_2 - OSError: out of pty devices ERROR test_g4.py::TestG4::test_1 - OSError: out of pty devices ERROR test_g77.py::TestG77::test_1 - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_1 - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_enum_value - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_enum_value_with_eq - OSError: out of pty dev... ERROR test_gcc.py::TestGcc::test_negative_option - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_no_completion - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_param_with_space - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_param_with_eq - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_march - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_march_native - OSError: out of pty devices ERROR test_gcc.py::TestGcc::test_mtune_generic - OSError: out of pty devices ERROR test_gcj.py::TestGcj::test_1 - OSError: out of pty devices ERROR test_gcl.py::TestGcl::test_1 - OSError: out of pty devices ERROR test_gdb.py::TestGdb::test_1 - OSError: out of pty devices ERROR test_gdb.py::TestGdb::test_2 - OSError: out of pty devices ERROR test_genaliases.py::TestGenaliases::test_1 - OSError: out of pty devices ERROR test_gendiff.py::TestGendiff::test_1 - OSError: out of pty devices ERROR test_genisoimage.py::TestGenisoimage::test_1 - OSError: out of pty devices ERROR test_genisoimage.py::TestGenisoimage::test_2 - OSError: out of pty devices ERROR test_geoiplookup.py::TestGeoiplookup::test_1 - OSError: out of pty devices ERROR test_getconf.py::TestGetconf::test_1 - OSError: out of pty devices ERROR test_getconf.py::TestGetconf::test_2 - OSError: out of pty devices ERROR test_getconf.py::TestGetconf::test_3 - OSError: out of pty devices ERROR test_getconf.py::TestGetconf::test_4 - OSError: out of pty devices ERROR test_getconf.py::TestGetconf::test_5 - OSError: out of pty devices ERROR test_getent.py::TestGetent::test_1 - OSError: out of pty devices ERROR test_getent.py::TestGetent::test_2 - OSError: out of pty devices ERROR test_gm.py::TestGm::test_1 - OSError: out of pty devices ERROR test_gm.py::TestGm::test_2 - OSError: out of pty devices ERROR test_gm.py::TestGm::test_3 - OSError: out of pty devices ERROR test_gm.py::TestGm::test_4 - OSError: out of pty devices ERROR test_gmplayer.py::TestGmplayer::test_1 - OSError: out of pty devices ERROR test_gnatmake.py::TestGnatmake::test_1 - OSError: out of pty devices ERROR test_gnokii.py::TestGnokii::test_1 - OSError: out of pty devices ERROR test_gnokii.py::TestGnokii::test_2 - OSError: out of pty devices ERROR test_gnome_mplayer.py::TestGnomeMplayer::test_1 - OSError: out of pty d... ERROR test_gnome_mplayer.py::TestGnomeMplayer::test_2 - OSError: out of pty d... ERROR test_gnome_screenshot.py::TestGnomeScreenshot::test_1 - OSError: out of... ERROR test_gpasswd.py::TestGpasswd::test_1 - OSError: out of pty devices ERROR test_gpasswd.py::TestGpasswd::test_2 - OSError: out of pty devices ERROR test_gpc.py::TestGpc::test_1 - OSError: out of pty devices ERROR test_gperf.py::TestGperf::test_1 - OSError: out of pty devices ERROR test_gpg.py::TestGpg::test_1 - OSError: out of pty devices ERROR test_gpg2.py::TestGpg2::test_1 - OSError: out of pty devices ERROR test_gpgv.py::TestGpgv::test_1 - OSError: out of pty devices ERROR test_gpgv.py::TestGpgv::test_2 - OSError: out of pty devices ERROR test_gpgv.py::TestGpgv::test_3 - OSError: out of pty devices ERROR test_gphoto2.py::TestGphoto2::test_1 - OSError: out of pty devices ERROR test_gplusplus.py::TestGPlusPlus::test_1 - OSError: out of pty devices ERROR test_gprof.py::TestGprof::test_1 - OSError: out of pty devices ERROR test_grep.py::TestGrep::test_1 - OSError: out of pty devices ERROR test_grep.py::TestGrep::test_2 - OSError: out of pty devices ERROR test_grep.py::TestGrep::test_no_variable_assignment_confusion - OSError... ERROR test_groupadd.py::TestGroupadd::test_1 - OSError: out of pty devices ERROR test_groupadd.py::TestGroupadd::test_2 - OSError: out of pty devices ERROR test_groupdel.py::TestGroupdel::test_1 - OSError: out of pty devices ERROR test_groupdel.py::TestGroupdel::test_2 - OSError: out of pty devices ERROR test_groupmems.py::TestGroupmems::test_1 - OSError: out of pty devices ERROR test_groupmod.py::TestGroupmod::test_1 - OSError: out of pty devices ERROR test_groupmod.py::TestGroupmod::test_2 - OSError: out of pty devices ERROR test_growisofs.py::TestGrowisofs::test_1 - OSError: out of pty devices ERROR test_grpck.py::TestGrpck::test_1 - OSError: out of pty devices ERROR test_grpck.py::TestGrpck::test_2 - OSError: out of pty devices ERROR test_grub.py::TestGrub::test_1 - OSError: out of pty devices ERROR test_gssdp_discover.py::TestGssdpDiscover::test_no_args - OSError: out ... ERROR test_gssdp_discover.py::TestGssdpDiscover::test_options - OSError: out ... ERROR test_gssdp_discover.py::TestGssdpDiscover::test_message_type - OSError:... ERROR test_gzip.py::TestGzip::test_1 - OSError: out of pty devices ERROR test_gzip.py::TestGzip::test_2 - OSError: out of pty devices ERROR test_gzip.py::TestGzip::test_3 - OSError: out of pty devices ERROR test_hciattach.py::TestHciattach::test_1 - OSError: out of pty devices ERROR test_hciconfig.py::TestHciconfig::test_1 - OSError: out of pty devices ERROR test_hcitool.py::TestHcitool::test_1 - OSError: out of pty devices ERROR test_hcitool.py::TestHcitool::test_2 - OSError: out of pty devices ERROR test_hddtemp.py::TestHddtemp::test_1 - OSError: out of pty devices ERROR test_head.py::TestHead::test_1 - OSError: out of pty devices ERROR test_hexdump.py::TestHexdump::test_1 - OSError: out of pty devices ERROR test_hid2hci.py::TestHid2hci::test_1 - OSError: out of pty devices ERROR test_host.py::TestHost::test_1 - OSError: out of pty devices ERROR test_hostname.py::TestHostname::test_1 - OSError: out of pty devices ERROR test_hping2.py::TestHping2::test_1 - OSError: out of pty devices ERROR test_hping2.py::TestHping2::test_2 - OSError: out of pty devices ERROR test_hping3.py::TestHping3::test_1 - OSError: out of pty devices ERROR test_htop.py::TestHtop::test_1 - OSError: out of pty devices ERROR test_htpasswd.py::TestHtpasswd::test_1 - OSError: out of pty devices ERROR test_htpasswd.py::TestHtpasswd::test_2 - OSError: out of pty devices ERROR test_htpasswd.py::TestHtpasswd::test_3 - OSError: out of pty devices ERROR test_htpasswd.py::TestHtpasswd::test_4 - OSError: out of pty devices ERROR test_htpasswd.py::TestHtpasswd::test_5 - OSError: out of pty devices ERROR test_hunspell.py::TestHunspell::test_1 - OSError: out of pty devices ERROR test_hunspell.py::TestHunspell::test_2 - OSError: out of pty devices ERROR test_hwclock.py::TestHwclock::test_1 - OSError: out of pty devices ERROR test_iconv.py::TestIconv::test_1 - OSError: out of pty devices ERROR test_iconv.py::TestIconv::test_2 - OSError: out of pty devices ERROR test_iconv.py::TestIconv::test_3 - OSError: out of pty devices ERROR test_iconv.py::TestIconv::test_4 - OSError: out of pty devices ERROR test_id.py::TestId::test_1 - OSError: out of pty devices ERROR test_identify.py::TestIdentify::test_1 - OSError: out of pty devices ERROR test_idn.py::TestIdn::test_1 - OSError: out of pty devices ERROR test_ifdown.py::TestIfdown::test_1 - OSError: out of pty devices ERROR test_ifdown.py::TestIfdown::test_2 - OSError: out of pty devices ERROR test_ifstat.py::TestIfstat::test_1 - OSError: out of pty devices ERROR test_ifstat.py::TestIfstat::test_2 - OSError: out of pty devices ERROR test_ifstat.py::TestIfstat::test_3 - OSError: out of pty devices ERROR test_iftop.py::TestIftop::test_1 - OSError: out of pty devices ERROR test_iftop.py::TestIftop::test_2 - OSError: out of pty devices ERROR test_ifup.py::TestIfup::test_1 - OSError: out of pty devices ERROR test_ifup.py::TestIfup::test_2 - OSError: out of pty devices ERROR test_ifup.py::TestIfup::test_3 - OSError: out of pty devices ERROR test_import.py::TestImport::test_1 - OSError: out of pty devices ERROR test_influx.py::TestInflux::test_nothing - OSError: out of pty devices ERROR test_influx.py::TestInflux::test_options - OSError: out of pty devices ERROR test_influx.py::TestInflux::test_format - OSError: out of pty devices ERROR test_info.py::TestInfo::test_1 - OSError: out of pty devices ERROR test_info.py::TestInfo::test_2 - OSError: out of pty devices ERROR test_inject.py::TestInject::test_1 - OSError: out of pty devices ERROR test_inotifywait.py::TestInotifywait::test_1 - OSError: out of pty devices ERROR test_inotifywait.py::TestInotifywait::test_2 - OSError: out of pty devices ERROR test_inotifywait.py::TestInotifywait::test_3 - OSError: out of pty devices ERROR test_inotifywatch.py::TestInotifywatch::test_1 - OSError: out of pty de... ERROR test_inotifywatch.py::TestInotifywatch::test_2 - OSError: out of pty de... ERROR test_inotifywatch.py::TestInotifywatch::test_3 - OSError: out of pty de... ERROR test_insmod.py::TestInsmod::test_1 - OSError: out of pty devices ERROR test_installpkg.py::TestInstallpkg::test_1 - OSError: out of pty devices ERROR test_installpkg.py::TestInstallpkg::test_2 - OSError: out of pty devices ERROR test_installpkg.py::TestInstallpkg::test_3 - OSError: out of pty devices ERROR test_installpkg.py::TestInstallpkg::test_4 - OSError: out of pty devices ERROR test_interdiff.py::TestInterdiff::test_1 - OSError: out of pty devices ERROR test_interdiff.py::TestInterdiff::test_2 - OSError: out of pty devices ERROR test_invoke_rc_d.py::TestInvokeRcD::test_1 - OSError: out of pty devices ERROR test_invoke_rc_d.py::TestInvokeRcD::test_2 - OSError: out of pty devices ERROR test_ionice.py::TestIonice::test_1 - OSError: out of pty devices ERROR test_ip.py::TestIp::test_1 - OSError: out of pty devices ERROR test_ip.py::TestIp::test_2 - OSError: out of pty devices ERROR test_ip.py::TestIp::test_r_r - OSError: out of pty devices ERROR test_ipcalc.py::TestIpcalc::test_options - OSError: out of pty devices ERROR test_ipcalc.py::TestIpcalc::test_split_3args_1 - OSError: out of pty de... ERROR test_ipcalc.py::TestIpcalc::test_split_3args_2 - OSError: out of pty de... ERROR test_ipcalc.py::TestIpcalc::test_split_3args_3 - OSError: out of pty de... ERROR test_ipcalc.py::TestIpcalc::test_split_3args_4 - OSError: out of pty de... ERROR test_iperf.py::TestIperf::test_1 - OSError: out of pty devices ERROR test_iperf.py::TestIperf::test_2 - OSError: out of pty devices ERROR test_iperf.py::TestIperf::test_3 - OSError: out of pty devices ERROR test_iperf.py::TestIperf::test_4 - OSError: out of pty devices ERROR test_iperf.py::TestIperf::test_5 - OSError: out of pty devices ERROR test_iperf3.py::TestIperf3::test_1 - OSError: out of pty devices ERROR test_iperf3.py::TestIperf3::test_2 - OSError: out of pty devices ERROR test_iperf3.py::TestIperf3::test_3 - OSError: out of pty devices ERROR test_iperf3.py::TestIperf3::test_4 - OSError: out of pty devices ERROR test_ipmitool.py::TestIpmitool::test_1 - OSError: out of pty devices ERROR test_ipmitool.py::TestIpmitool::test_2 - OSError: out of pty devices ERROR test_ipsec.py::TestIpsec::test_1 - OSError: out of pty devices ERROR test_iptables.py::TestIptables::test_1 - OSError: out of pty devices ERROR test_ipv6calc.py::TestIpv6calc::test_1 - OSError: out of pty devices ERROR test_ipv6calc.py::TestIpv6calc::test_2 - OSError: out of pty devices ERROR test_irb.py::TestIrb::test_1 - OSError: out of pty devices ERROR test_irb.py::TestIrb::test_options - OSError: out of pty devices ERROR test_iscsiadm.py::TestIscsiadm::test_1 - OSError: out of pty devices ERROR test_isort.py::TestIsort::test_1 - OSError: out of pty devices ERROR test_isort.py::TestIsort::test_2 - OSError: out of pty devices ERROR test_isql.py::TestIsql::test_1 - OSError: out of pty devices ERROR test_iwconfig.py::TestIwconfig::test_1 - OSError: out of pty devices ERROR test_iwlist.py::TestIwlist::test_1 - OSError: out of pty devices ERROR test_iwpriv.py::TestIwpriv::test_1 - OSError: out of pty devices ERROR test_iwspy.py::TestIwspy::test_1 - OSError: out of pty devices ERROR test_jar.py::TestJar::test_1 - OSError: out of pty devices ERROR test_jarsigner.py::TestJarsigner::test_1 - OSError: out of pty devices ERROR test_java.py::TestJava::test_1 - OSError: out of pty devices ERROR test_java.py::TestJava::test_2 - OSError: out of pty devices ERROR test_java.py::TestJava::test_3 - OSError: out of pty devices ERROR test_java.py::TestJava::test_4 - OSError: out of pty devices ERROR test_java.py::TestJava::test_5 - OSError: out of pty devices ERROR test_java.py::TestJava::test_6 - OSError: out of pty devices ERROR test_javac.py::TestJavac::test_1 - OSError: out of pty devices ERROR test_javac.py::TestJavac::test_2 - OSError: out of pty devices ERROR test_javadoc.py::TestJavadoc::test_1 - OSError: out of pty devices ERROR test_javadoc.py::TestJavadoc::test_2 - OSError: out of pty devices ERROR test_javadoc.py::TestJavadoc::test_3 - OSError: out of pty devices ERROR test_javaws.py::TestJavaws::test_1 - OSError: out of pty devices ERROR test_javaws.py::TestJavaws::test_2 - OSError: out of pty devices ERROR test_jpegoptim.py::TestJpegoptim::test_1 - OSError: out of pty devices ERROR test_jpegoptim.py::TestJpegoptim::test_2 - OSError: out of pty devices ERROR test_jps.py::TestJps::test_1 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_1 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_2 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_3 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_4 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_5 - OSError: out of pty devices ERROR test_jq.py::TestJq::test_6 - OSError: out of pty devices ERROR test_jshint.py::TestJshint::test_1 - OSError: out of pty devices ERROR test_jshint.py::TestJshint::test_2 - OSError: out of pty devices ERROR test_json_xs.py::TestJsonXs::test_1 - OSError: out of pty devices ERROR test_json_xs.py::TestJsonXs::test_2 - OSError: out of pty devices ERROR test_jsonschema.py::TestJsonschema::test_1 - OSError: out of pty devices ERROR test_jsonschema.py::TestJsonschema::test_2 - OSError: out of pty devices ERROR test_k3b.py::TestK3b::test_1 - OSError: out of pty devices ERROR test_k3b.py::TestK3b::test_2 - OSError: out of pty devices ERROR test_kcov.py::TestKcov::test_1 - OSError: out of pty devices ERROR test_kcov.py::TestKcov::test_2 - OSError: out of pty devices ERROR test_kcov.py::TestKcov::test_3 - OSError: out of pty devices ERROR test_kdvi.py::TestKdvi::test_1 - OSError: out of pty devices ERROR test_kill.py::TestKill::test_1 - OSError: out of pty devices ERROR test_kill.py::TestKill::test_2 - OSError: out of pty devices ERROR test_kill.py::TestKill::test_3 - OSError: out of pty devices ERROR test_kill.py::TestKill::test_jobs - OSError: out of pty devices ERROR test_killall.py::TestKillall::test_1 - OSError: out of pty devices ERROR test_killall.py::TestKillall::test_2 - OSError: out of pty devices ERROR test_killall.py::TestKillall::test_3 - OSError: out of pty devices ERROR test_killall.py::TestKillall::test_4 - OSError: out of pty devices ERROR test_kldload.py::TestKldload::test_1 - OSError: out of pty devices ERROR test_kldunload.py::TestKldunload::test_1 - OSError: out of pty devices ERROR test_koji.py::TestKoji::test_1 - OSError: out of pty devices ERROR test_koji.py::TestKoji::test_2 - OSError: out of pty devices ERROR test_kpdf.py::TestKpdf::test_1 - OSError: out of pty devices ERROR test_kplayer.py::TestKplayer::test_1 - OSError: out of pty devices ERROR test_ktutil.py::TestKtutil::test_1 - OSError: out of pty devices ERROR test_ktutil.py::TestKtutil::test_2 - OSError: out of pty devices ERROR test_l2ping.py::TestL2ping::test_1 - OSError: out of pty devices ERROR test_larch.py::TestLarch::test_1 - OSError: out of pty devices ERROR test_lastlog.py::TestLastlog::test_1 - OSError: out of pty devices ERROR test_ld.py::TestLd::test_1 - OSError: out of pty devices ERROR test_ld.py::TestLd::test_options - OSError: out of pty devices ERROR test_ldapadd.py::TestLdapadd::test_1 - OSError: out of pty devices ERROR test_ldapcompare.py::TestLdapcompare::test_1 - OSError: out of pty devices ERROR test_ldapdelete.py::TestLdapdelete::test_1 - OSError: out of pty devices ERROR test_ldapmodrdn.py::TestLdapmodrdn::test_1 - OSError: out of pty devices ERROR test_ldappasswd.py::TestLdappasswd::test_1 - OSError: out of pty devices ERROR test_ldapsearch.py::TestLdapsearch::test_1 - OSError: out of pty devices ERROR test_ldapvi.py::TestLdapvi::test_1 - OSError: out of pty devices ERROR test_ldapwhoami.py::TestLdapwhoami::test_1 - OSError: out of pty devices ERROR test_ldd.py::TestLdd::test_1 - OSError: out of pty devices ERROR test_ldd.py::TestLdd::test_options - OSError: out of pty devices ERROR test_less.py::TestLess::test_1 - OSError: out of pty devices ERROR test_less.py::TestLess::test_no_dashdashdash - OSError: out of pty devices ERROR test_lftp.py::TestLftp::test_1 - OSError: out of pty devices ERROR test_lftp.py::TestLftp::test_2 - OSError: out of pty devices ERROR test_lftpget.py::TestLftpget::test_1 - OSError: out of pty devices ERROR test_lilo.py::TestLilo::test_1 - OSError: out of pty devices ERROR test_lilo.py::TestLilo::test_labels - OSError: out of pty devices ERROR test_lilo.py::TestLilo::test_labels_incorrect_command - OSError: out of... ERROR test_links.py::TestLinks::test_1 - OSError: out of pty devices ERROR test_links.py::TestLinks::test_2 - OSError: out of pty devices ERROR test_lintian.py::TestLintian::test_1 - OSError: out of pty devices ERROR test_lintian_info.py::TestLintianInfo::test_1 - OSError: out of pty dev... ERROR test_lintian_info.py::TestLintianInfo::test_2 - OSError: out of pty dev... ERROR test_lisp.py::TestLisp::test_1 - OSError: out of pty devices ERROR test_list_admins.py::TestListAdmins::test_1 - OSError: out of pty devices ERROR test_list_lists.py::TestListLists::test_1 - OSError: out of pty devices ERROR test_list_members.py::TestListMembers::test_1 - OSError: out of pty dev... ERROR test_list_owners.py::TestListOwners::test_1 - OSError: out of pty devices ERROR test_ln.py::TestLn::test_1 - OSError: out of pty devices ERROR test_ln.py::TestLn::test_options - OSError: out of pty devices ERROR test_locale_gen.py::TestLocaleGen::test_1 - OSError: out of pty devices ERROR test_locale_gen.py::TestLocaleGen::test_2 - OSError: out of pty devices ERROR test_look.py::TestLook::test_1 - OSError: out of pty devices ERROR test_lpq.py::TestLpq::test_1 - OSError: out of pty devices ERROR test_lpr.py::TestLpr::test_1 - OSError: out of pty devices ERROR test_lrzip.py::TestLrzip::test_1 - OSError: out of pty devices ERROR test_lrzip.py::TestLrzip::test_2 - OSError: out of pty devices ERROR test_lrzip.py::TestLrzip::test_3 - OSError: out of pty devices ERROR test_ls.py::TestLs::test_1 - OSError: out of pty devices ERROR test_ls.py::TestLs::test_2 - OSError: out of pty devices ERROR test_ls.py::TestLs::test_3 - OSError: out of pty devices ERROR test_lsof.py::TestLsof::test_1 - OSError: out of pty devices ERROR test_lsof.py::TestLsof::test_2 - OSError: out of pty devices ERROR test_lspci.py::TestLspci::test_1 - OSError: out of pty devices ERROR test_lspci.py::TestLspci::test_2 - OSError: out of pty devices ERROR test_lsscsi.py::TestLsscsi::test_1 - OSError: out of pty devices ERROR test_lsscsi.py::TestLsscsi::test_2 - OSError: out of pty devices ERROR test_lsusb.py::TestLsusb::test_1 - OSError: out of pty devices ERROR test_lua.py::TestLua::test_1 - OSError: out of pty devices ERROR test_lua.py::TestLua::test_2 - OSError: out of pty devices ERROR test_luac.py::TestLuac::test_1 - OSError: out of pty devices ERROR test_luac.py::TestLuac::test_2 - OSError: out of pty devices ERROR test_luseradd.py::TestLuseradd::test_1 - OSError: out of pty devices ERROR test_luserdel.py::TestLuserdel::test_1 - OSError: out of pty devices ERROR test_luserdel.py::TestLuserdel::test_2 - OSError: out of pty devices ERROR test_lusermod.py::TestLusermod::test_1 - OSError: out of pty devices ERROR test_lvchange.py::TestLvchange::test_1 - OSError: out of pty devices ERROR test_lvcreate.py::TestLvcreate::test_1 - OSError: out of pty devices ERROR test_lvdisplay.py::TestLvdisplay::test_1 - OSError: out of pty devices ERROR test_lvextend.py::TestLvextend::test_1 - OSError: out of pty devices ERROR test_lvm.py::TestLvm::test_1 - OSError: out of pty devices ERROR test_lvmdiskscan.py::TestLvmdiskscan::test_1 - OSError: out of pty devices ERROR test_lvreduce.py::TestLvreduce::test_1 - OSError: out of pty devices ERROR test_lvremove.py::TestLvremove::test_1 - OSError: out of pty devices ERROR test_lvrename.py::TestLvrename::test_1 - OSError: out of pty devices ERROR test_lvresize.py::TestLvresize::test_1 - OSError: out of pty devices ERROR test_lvs.py::TestLvs::test_1 - OSError: out of pty devices ERROR test_lvscan.py::TestLvscan::test_1 - OSError: out of pty devices ERROR test_lz4.py::TestLz4::test_1 - OSError: out of pty devices ERROR test_lz4.py::TestLz4::test_2 - OSError: out of pty devices ERROR test_lz4.py::TestLz4::test_3 - OSError: out of pty devices ERROR test_lzip.py::TestLzip::test_1 - OSError: out of pty devices ERROR test_lzip.py::TestLzip::test_2 - OSError: out of pty devices ERROR test_lzma.py::TestLzma::test_1 - OSError: out of pty devices ERROR test_lzma.py::TestLzma::test_2 - OSError: out of pty devices ERROR test_lzma.py::TestLzma::test_3 - OSError: out of pty devices ERROR test_lzma.py::TestLzma::test_4 - OSError: out of pty devices ERROR test_lzop.py::TestLzop::test_1 - OSError: out of pty devices ERROR test_lzop.py::TestLzop::test_2 - OSError: out of pty devices ERROR test_m4.py::TestM4::test_1 - OSError: out of pty devices ERROR test_macof.py::TestMacof::test_1 - OSError: out of pty devices ERROR test_mailmanctl.py::TestMailmanctl::test_1 - OSError: out of pty devices ERROR test_mailsnarf.py::TestMailsnarf::test_1 - OSError: out of pty devices ERROR test_make.py::TestMake::test_1 - OSError: out of pty devices ERROR test_make.py::TestMake::test_2 - OSError: out of pty devices ERROR test_make.py::TestMake::test_3 - OSError: out of pty devices ERROR test_make.py::TestMake::test_4 - OSError: out of pty devices ERROR test_make.py::TestMake::test_5 - OSError: out of pty devices ERROR test_make.py::TestMake::test_6 - OSError: out of pty devices ERROR test_make.py::TestMake::test_7 - OSError: out of pty devices ERROR test_make.py::TestMake::test_8 - OSError: out of pty devices ERROR test_make.py::TestMake::test_9 - OSError: out of pty devices ERROR test_makepkg.py::TestMakepkg::test_1 - OSError: out of pty devices ERROR test_makepkg.py::TestMakepkg::test_2 - OSError: out of pty devices ERROR test_man.py::TestMan::test_1 - OSError: out of pty devices ERROR test_man.py::TestMan::test_2 - OSError: out of pty devices ERROR test_man.py::TestMan::test_3 - OSError: out of pty devices ERROR test_man.py::TestMan::test_4 - OSError: out of pty devices ERROR test_man.py::TestMan::test_5 - OSError: out of pty devices ERROR test_man.py::TestMan::test_6 - OSError: out of pty devices ERROR test_man.py::TestMan::test_7 - OSError: out of pty devices ERROR test_man.py::TestMan::test_8 - OSError: out of pty devices ERROR test_man.py::TestMan::test_9 - OSError: out of pty devices ERROR test_man.py::TestMan::test_10 - OSError: out of pty devices ERROR test_man.py::TestMan::test_11 - OSError: out of pty devices ERROR test_man.py::TestMan::test_delimited_first - OSError: out of pty devices ERROR test_man.py::TestMan::test_delimited_after_delimiter - OSError: out of ... ERROR test_man.py::TestMan::test_delimited_later - OSError: out of pty devices ERROR test_man.py::TestMan::test_delimited_deduplication - OSError: out of pt... ERROR test_mc.py::TestMc::test_1 - OSError: out of pty devices ERROR test_mcrypt.py::TestMcrypt::test_1 - OSError: out of pty devices ERROR test_mcrypt.py::TestMcrypt::test_2 - OSError: out of pty devices ERROR test_mcrypt.py::TestMcrypt::test_3 - OSError: out of pty devices ERROR test_mcrypt.py::TestMcrypt::test_4 - OSError: out of pty devices ERROR test_md5sum.py::TestMd5sum::test_1 - OSError: out of pty devices ERROR test_md5sum.py::TestMd5sum::test_options - OSError: out of pty devices ERROR test_mdadm.py::TestMdadm::test_1 - OSError: out of pty devices ERROR test_mdecrypt.py::TestMdecrypt::test_1 - OSError: out of pty devices ERROR test_mdtool.py::TestMdtool::test_1 - OSError: out of pty devices ERROR test_medusa.py::TestMedusa::test_1 - OSError: out of pty devices ERROR test_mencoder.py::TestMencoder::test_1 - OSError: out of pty devices ERROR test_mencoder.py::TestMencoder::test_2 - OSError: out of pty devices ERROR test_mii_diag.py::TestMiiDiag::test_1 - OSError: out of pty devices ERROR test_mii_diag.py::TestMiiDiag::test_2 - OSError: out of pty devices ERROR test_mii_tool.py::TestMiiTool::test_1 - OSError: out of pty devices ERROR test_mii_tool.py::TestMiiTool::test_2 - OSError: out of pty devices ERROR test_minicom.py::TestMinicom::test_1 - OSError: out of pty devices ERROR test_mkdir.py::TestMkdir::test_1 - OSError: out of pty devices ERROR test_mkdir.py::TestMkdir::test_2 - OSError: out of pty devices ERROR test_mkdir.py::TestMkdir::test_options - OSError: out of pty devices ERROR test_mkfifo.py::TestMkfifo::test_1 - OSError: out of pty devices ERROR test_mkfifo.py::TestMkfifo::test_options - OSError: out of pty devices ERROR test_mkinitrd.py::TestMkinitrd::test_1 - OSError: out of pty devices ERROR test_mkisofs.py::TestMkisofs::test_1 - OSError: out of pty devices ERROR test_mkisofs.py::TestMkisofs::test_2 - OSError: out of pty devices ERROR test_mkisofs.py::TestMkisofs::test_3 - OSError: out of pty devices ERROR test_mknod.py::TestMknod::test_1 - OSError: out of pty devices ERROR test_mknod.py::TestMknod::test_options - OSError: out of pty devices ERROR test_mktemp.py::TestMktemp::test_1 - OSError: out of pty devices ERROR test_mmsitepass.py::TestMmsitepass::test_1 - OSError: out of pty devices ERROR test_mock.py::TestMock::test_1 - OSError: out of pty devices ERROR test_mock.py::TestMock::test_2 - OSError: out of pty devices ERROR test_modinfo.py::TestModinfo::test_1 - OSError: out of pty devices ERROR test_modinfo.py::TestModinfo::test_2 - OSError: out of pty devices ERROR test_modinfo.py::TestModinfo::test_3 - OSError: out of pty devices ERROR test_modinfo.py::TestModinfo::test_4 - OSError: out of pty devices ERROR test_modprobe.py::TestModprobe::test_1 - OSError: out of pty devices ERROR test_modprobe.py::TestModprobe::test_2 - OSError: out of pty devices ERROR test_modprobe.py::TestModprobe::test_3 - OSError: out of pty devices ERROR test_modprobe.py::TestModprobe::test_4 - OSError: out of pty devices ERROR test_modprobe.py::TestModprobe::test_5 - OSError: out of pty devices ERROR test_module.py::TestModule::test_1 - OSError: out of pty devices ERROR test_mogrify.py::TestMogrify::test_1 - OSError: out of pty devices ERROR test_monodevelop.py::TestMonodevelop::test_1 - OSError: out of pty devices ERROR test_monodevelop.py::TestMonodevelop::test_2 - OSError: out of pty devices ERROR test_montage.py::TestMontage::test_1 - OSError: out of pty devices ERROR test_mount.py::TestMount::test_1 - OSError: out of pty devices ERROR test_mount.py::TestMount::test_2 - OSError: out of pty devices ERROR test_mount.py::TestMount::test_3 - OSError: out of pty devices ERROR test_mount.py::TestMount::test_4 - OSError: out of pty devices ERROR test_mplayer.py::TestMplayer::test_1 - OSError: out of pty devices ERROR test_mplayer.py::TestMplayer::test_2 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_1 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_2 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_3 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_4 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_5 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_6 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_7 - OSError: out of pty devices ERROR test_mr.py::TestMr::test_8 - OSError: out of pty devices ERROR test_msgsnarf.py::TestMsgsnarf::test_1 - OSError: out of pty devices ERROR test_msynctool.py::TestMsynctool::test_1 - OSError: out of pty devices ERROR test_mtx.py::TestMtx::test_1 - OSError: out of pty devices ERROR test_munin_node_configure.py::TestMuninNodeConfigure::test_1 - OSError:... ERROR test_munin_node_configure.py::TestMuninNodeConfigure::test_2 - OSError:... ERROR test_munin_run.py::TestMuninRun::test_1 - OSError: out of pty devices ERROR test_munindoc.py::TestMunindoc::test_1 - OSError: out of pty devices ERROR test_mussh.py::TestMussh::test_1 - OSError: out of pty devices ERROR test_mutt.py::TestMutt::test_1 - OSError: out of pty devices ERROR test_mutt.py::TestMutt::test_2 - OSError: out of pty devices ERROR test_mutt.py::TestMutt::test_3 - OSError: out of pty devices ERROR test_mutt.py::TestMutt::test_4 - OSError: out of pty devices ERROR test_muttng.py::TestMuttng::test_1 - OSError: out of pty devices ERROR test_mv.py::TestMv::test_1 - OSError: out of pty devices ERROR test_mv.py::TestMv::test_options - OSError: out of pty devices ERROR test_mypy.py::TestMypy::test_1 - OSError: out of pty devices ERROR test_mypy.py::TestMypy::test_2 - OSError: out of pty devices ERROR test_mypy.py::TestMypy::test_3 - OSError: out of pty devices ERROR test_mysql.py::TestMysql::test_1 - OSError: out of pty devices ERROR test_mysql.py::TestMysql::test_2 - OSError: out of pty devices ERROR test_mysql.py::TestMysql::test_3 - OSError: out of pty devices ERROR test_mysqladmin.py::TestMysqladmin::test_1 - OSError: out of pty devices ERROR test_nc.py::TestNc::test_1 - OSError: out of pty devices ERROR test_ncftp.py::TestNcftp::test_1 - OSError: out of pty devices ERROR test_ncftp.py::TestNcftp::test_2 - OSError: out of pty devices ERROR test_neomutt.py::TestNeomutt::test_1 - OSError: out of pty devices ERROR test_nethogs.py::TestNethogs::test_1 - OSError: out of pty devices ERROR test_nethogs.py::TestNethogs::test_2 - OSError: out of pty devices ERROR test_netstat.py::TestNetstat::test_1 - OSError: out of pty devices ERROR test_netstat.py::TestNetstat::test_options - OSError: out of pty devices ERROR test_newgrp.py::TestNewgrp::test_1 - OSError: out of pty devices ERROR test_newlist.py::TestNewlist::test_1 - OSError: out of pty devices ERROR test_newusers.py::TestNewusers::test_1 - OSError: out of pty devices ERROR test_newusers.py::TestNewusers::test_2 - OSError: out of pty devices ERROR test_ngrep.py::TestNgrep::test_1 - OSError: out of pty devices ERROR test_ngrep.py::TestNgrep::test_2 - OSError: out of pty devices ERROR test_nl.py::TestNl::test_1 - OSError: out of pty devices ERROR test_nl.py::TestNl::test_options - OSError: out of pty devices ERROR test_nm.py::TestNm::test_1 - OSError: out of pty devices ERROR test_nm.py::TestNm::test_options - OSError: out of pty devices ERROR test_nmap.py::TestNmap::test_live_options - OSError: out of pty devices ERROR test_nmap.py::TestNmap::test_hosts - OSError: out of pty devices ERROR test_nmap.py::TestNmap::test_mock_options - OSError: out of pty devices ERROR test_nmap.py::TestNmap::test_mock_nospace - OSError: out of pty devices ERROR test_nmcli.py::TestNmcli::test_1 - OSError: out of pty devices ERROR test_nproc.py::TestNproc::test_1 - OSError: out of pty devices ERROR test_nproc.py::TestNproc::test_2 - OSError: out of pty devices ERROR test_nslookup.py::TestNslookup::test_1 - OSError: out of pty devices ERROR test_nsupdate.py::TestNsupdate::test_1 - OSError: out of pty devices ERROR test_nsupdate.py::TestNsupdate::test_2 - OSError: out of pty devices ERROR test_ntpdate.py::TestNtpdate::test_1 - OSError: out of pty devices ERROR test_objcopy.py::TestObjcopy::test_1 - OSError: out of pty devices ERROR test_objcopy.py::TestObjcopy::test_options - OSError: out of pty devices ERROR test_objdump.py::TestObjdump::test_1 - OSError: out of pty devices ERROR test_od.py::TestOd::test_1 - OSError: out of pty devices ERROR test_od.py::TestOd::test_options - OSError: out of pty devices ERROR test_oggdec.py::TestOggdec::test_1 - OSError: out of pty devices ERROR test_oggdec.py::TestOggdec::test_2 - OSError: out of pty devices ERROR test_op.py::TestOp::test_1 - OSError: out of pty devices ERROR test_op.py::TestOp::test_2 - OSError: out of pty devices ERROR test_openssl.py::TestOpenssl::test_1 - OSError: out of pty devices ERROR test_openssl.py::TestOpenssl::test_2 - OSError: out of pty devices ERROR test_openssl.py::TestOpenssl::test_3 - OSError: out of pty devices ERROR test_opera.py::TestOpera::test_1 - OSError: out of pty devices ERROR test_opera.py::TestOpera::test_2 - OSError: out of pty devices ERROR test_optipng.py::TestOptipng::test_1 - OSError: out of pty devices ERROR test_optipng.py::TestOptipng::test_2 - OSError: out of pty devices ERROR test_p4.py::TestP4::test_1 - OSError: out of pty devices ERROR test_pack200.py::TestPack200::test_1 - OSError: out of pty devices ERROR test_passwd.py::TestPasswd::test_1 - OSError: out of pty devices ERROR test_passwd.py::TestPasswd::test_2 - OSError: out of pty devices ERROR test_paste.py::TestPaste::test_1 - OSError: out of pty devices ERROR test_paste.py::TestPaste::test_options - OSError: out of pty devices ERROR test_patch.py::TestPatch::test_1 - OSError: out of pty devices ERROR test_patch.py::TestPatch::test_2 - OSError: out of pty devices ERROR test_pdftotext.py::TestPdftotext::test_1 - OSError: out of pty devices ERROR test_pdftotext.py::TestPdftotext::test_2 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_1 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_2 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_3 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_4 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_5 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_6 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_7 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_8 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_9 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_10 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_11 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_12 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_13 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_14 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_15 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_16 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_17 - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_dash_capital_e - OSError: out of pty devices ERROR test_perl.py::TestPerl::test_dash_e - OSError: out of pty devices ERROR test_perlcritic.py::TestPerlcritic::test_1 - OSError: out of pty devices ERROR test_perlcritic.py::TestPerlcritic::test_2 - OSError: out of pty devices ERROR test_perlcritic.py::TestPerlcritic::test_3 - OSError: out of pty devices ERROR test_perldoc.py::TestPerldoc::test_1 - OSError: out of pty devices ERROR test_perldoc.py::TestPerldoc::test_2 - OSError: out of pty devices ERROR test_perldoc.py::TestPerldoc::test_3 - OSError: out of pty devices ERROR test_perltidy.py::TestPerltidy::test_1 - OSError: out of pty devices ERROR test_perltidy.py::TestPerltidy::test_2 - OSError: out of pty devices ERROR test_perltidy.py::TestPerltidy::test_3 - OSError: out of pty devices ERROR test_perltidy.py::TestPerltidy::test_4 - OSError: out of pty devices ERROR test_pgrep.py::TestPgrep::test_1 - OSError: out of pty devices ERROR test_pgrep.py::TestPgrep::test_2 - OSError: out of pty devices ERROR test_pgrep.py::TestPgrep::test_nslist - OSError: out of pty devices ERROR test_pgrep.py::TestPgrep::test_nslist_after_comma - OSError: out of pty... ERROR test_phing.py::TestPhing::test_1 - OSError: out of pty devices ERROR test_phing.py::TestPhing::test_2 - OSError: out of pty devices ERROR test_pidof.py::TestPidof::test_1 - OSError: out of pty devices ERROR test_pidof.py::TestPidof::test_2 - OSError: out of pty devices ERROR test_pine.py::TestPine::test_1 - OSError: out of pty devices ERROR test_pinfo.py::TestPinfo::test_1 - OSError: out of pty devices ERROR test_pinfo.py::TestPinfo::test_2 - OSError: out of pty devices ERROR test_ping.py::TestPing::test_1 - OSError: out of pty devices ERROR test_ping.py::TestPing::test_2 - OSError: out of pty devices ERROR test_pkg_config.py::TestPkgConfig::test_1 - OSError: out of pty devices ERROR test_pkg_config.py::TestPkgConfig::test_2 - OSError: out of pty devices ERROR test_pkg_config.py::TestPkgConfig::test_variable - OSError: out of pty ... ERROR test_pkg_deinstall.py::TestPkgDeinstall::test_1 - OSError: out of pty d... ERROR test_pkg_delete.py::TestPkgDelete::test_1 - OSError: out of pty devices ERROR test_pkg_get.py::TestPkgGet::test_1 - OSError: out of pty devices ERROR test_pkg_info.py::TestPkgInfo::test_1 - OSError: out of pty devices ERROR test_pkgadd.py::TestPkgadd::test_1 - OSError: out of pty devices ERROR test_pkgconf.py::TestPkgconf::test_1 - OSError: out of pty devices ERROR test_pkgconf.py::TestPkgconf::test_2 - OSError: out of pty devices ERROR test_pkgconf.py::TestPkgconf::test_variable - OSError: out of pty devices ERROR test_pkgrm.py::TestPkgrm::test_1 - OSError: out of pty devices ERROR test_pkgtool.py::TestPkgtool::test_1 - OSError: out of pty devices ERROR test_pkgutil.py::TestPkgutil::test_1 - OSError: out of pty devices ERROR test_pkill.py::TestPkill::test_1 - OSError: out of pty devices ERROR test_pkill.py::TestPkill::test_2 - OSError: out of pty devices ERROR test_plague_client.py::TestPlagueClient::test_1 - OSError: out of pty d... ERROR test_pm_hibernate.py::TestPmHibernate::test_1 - OSError: out of pty dev... ERROR test_pm_is_supported.py::TestPmIsSupported::test_1 - OSError: out of pt... ERROR test_pm_powersave.py::TestPmPowersave::test_1 - OSError: out of pty dev... ERROR test_pngfix.py::TestPngfix::test_1 - OSError: out of pty devices ERROR test_pngfix.py::TestPngfix::test_2 - OSError: out of pty devices ERROR test_portinstall.py::TestPortinstall::test_1 - OSError: out of pty devices ERROR test_portsnap.py::TestPortsnap::test_1 - OSError: out of pty devices ERROR test_portupgrade.py::TestPortupgrade::test_1 - OSError: out of pty devices ERROR test_postcat.py::TestPostcat::test_1 - OSError: out of pty devices ERROR test_postcat.py::TestPostcat::test_2 - OSError: out of pty devices ERROR test_postconf.py::TestPostconf::test_1 - OSError: out of pty devices ERROR test_postconf.py::TestPostconf::test_2 - OSError: out of pty devices ERROR test_postfix.py::TestPostfix::test_1 - OSError: out of pty devices ERROR test_postmap.py::TestPostmap::test_1 - OSError: out of pty devices ERROR test_postmap.py::TestPostmap::test_2 - OSError: out of pty devices ERROR test_postsuper.py::TestPostsuper::test_1 - OSError: out of pty devices ERROR test_povray.py::TestPovray::test_1 - OSError: out of pty devices ERROR test_pr.py::TestPr::test_1 - OSError: out of pty devices ERROR test_pr.py::TestPr::test_options - OSError: out of pty devices ERROR test_prelink.py::TestPrelink::test_1 - OSError: out of pty devices ERROR test_prelink.py::TestPrelink::test_2 - OSError: out of pty devices ERROR test_printenv.py::TestPrintenv::test_empty - OSError: out of pty devices ERROR test_printenv.py::TestPrintenv::test_path - OSError: out of pty devices ERROR test_printenv.py::TestPrintenv::test_options - OSError: out of pty devices ERROR test_protoc.py::TestProtoc::test_1 - OSError: out of pty devices ERROR test_protoc.py::TestProtoc::test_2 - OSError: out of pty devices ERROR test_protoc.py::TestProtoc::test_all_out - OSError: out of pty devices ERROR test_ps.py::TestPs::test_1 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_2 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_3 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_4 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_5 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_6 - OSError: out of pty devices ERROR test_ps.py::TestPs::test_7 - OSError: out of pty devices ERROR test_psql.py::TestPsql::test_1 - OSError: out of pty devices ERROR test_ptx.py::TestPtx::test_1 - OSError: out of pty devices ERROR test_ptx.py::TestPtx::test_options - OSError: out of pty devices ERROR test_puppet.py::TestPuppet::test_1 - OSError: out of pty devices ERROR test_puppet.py::TestPuppet::test_2 - OSError: out of pty devices ERROR test_pushd.py::TestPushd::test_1 - OSError: out of pty devices ERROR test_pv.py::TestPv::test_1 - OSError: out of pty devices ERROR test_pv.py::TestPv::test_2 - OSError: out of pty devices ERROR test_pv.py::TestPv::test_3 - OSError: out of pty devices ERROR test_pvchange.py::TestPvchange::test_1 - OSError: out of pty devices ERROR test_pvcreate.py::TestPvcreate::test_1 - OSError: out of pty devices ERROR test_pvdisplay.py::TestPvdisplay::test_1 - OSError: out of pty devices ERROR test_pvmove.py::TestPvmove::test_1 - OSError: out of pty devices ERROR test_pvremove.py::TestPvremove::test_1 - OSError: out of pty devices ERROR test_pvs.py::TestPvs::test_1 - OSError: out of pty devices ERROR test_pvscan.py::TestPvscan::test_1 - OSError: out of pty devices ERROR test_pwck.py::TestPwck::test_1 - OSError: out of pty devices ERROR test_pwck.py::TestPwck::test_2 - OSError: out of pty devices ERROR test_pwd.py::TestPwd::test_1 - OSError: out of pty devices ERROR test_pwdx.py::TestPwdx::test_1 - OSError: out of pty devices ERROR test_pwdx.py::TestPwdx::test_2 - OSError: out of pty devices ERROR test_pwgen.py::TestPwgen::test_1 - OSError: out of pty devices ERROR test_pycodestyle.py::TestPycodestyle::test_1 - OSError: out of pty devices ERROR test_pycodestyle.py::TestPycodestyle::test_2 - OSError: out of pty devices ERROR test_pycodestyle.py::TestPycodestyle::test_3 - OSError: out of pty devices ERROR test_pydoc.py::TestPydoc::test_1 - OSError: out of pty devices ERROR test_pydoc.py::TestPydoc::test_2 - OSError: out of pty devices ERROR test_pydocstyle.py::TestPydocstyle::test_1 - OSError: out of pty devices ERROR test_pydocstyle.py::TestPydocstyle::test_2 - OSError: out of pty devices ERROR test_pyflakes.py::TestPyflakes::test_1 - OSError: out of pty devices ERROR test_pyflakes.py::TestPyflakes::test_2 - OSError: out of pty devices ERROR test_pylint.py::TestPylint::test_1 - OSError: out of pty devices ERROR test_pylint.py::TestPylint::test_2 - OSError: out of pty devices ERROR test_pylint_3.py::TestPylint3::test_1 - OSError: out of pty devices ERROR test_pylint_3.py::TestPylint3::test_2 - OSError: out of pty devices ERROR test_pytest.py::TestPytest::test_1 - OSError: out of pty devices ERROR test_pytest.py::TestPytest::test_2 - OSError: out of pty devices ERROR test_pytest.py::TestPytest::test_classes_and_functions - OSError: out o... ERROR test_pytest.py::TestPytest::test_class_methods - OSError: out of pty de... ERROR test_pytest.py::TestPytest::test_classes_and_async_functions - OSError:... ERROR test_pytest.py::TestPytest::test_async_class_methods - OSError: out of ... ERROR test_python.py::TestPython::test_1 - OSError: out of pty devices ERROR test_python.py::TestPython::test_2 - OSError: out of pty devices ERROR test_python.py::TestPython::test_3 - OSError: out of pty devices ERROR test_python.py::TestPython::test_4 - OSError: out of pty devices ERROR test_python.py::TestPython::test_5 - OSError: out of pty devices ERROR test_python.py::TestPython::test_6 - OSError: out of pty devices ERROR test_python.py::TestPython::test_7 - OSError: out of pty devices ERROR test_python.py::TestPython::test_8 - OSError: out of pty devices ERROR test_python.py::TestPython::test_9 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_1 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_2 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_3 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_4 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_5 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_6 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_7 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_8 - OSError: out of pty devices ERROR test_python3.py::TestPython3::test_9 - OSError: out of pty devices ERROR test_pyvenv.py::TestPyvenv::test_1 - OSError: out of pty devices ERROR test_qemu.py::TestQemu::test_1 - OSError: out of pty devices ERROR test_qemu.py::TestQemu::test_2 - OSError: out of pty devices ERROR test_qemu.py::TestQemu::test_keymaps - OSError: out of pty devices ERROR test_qemu_system_x86_64.py::TestQemuSystemX8664::test_basic - OSError: ... ERROR test_qemu_system_x86_64.py::TestQemuSystemX8664::test_options - OSError... ERROR test_qemu_system_x86_64.py::TestQemuSystemX8664::test_keymaps - OSError... ERROR test_qrunner.py::TestQrunner::test_1 - OSError: out of pty devices ERROR test_querybts.py::TestQuerybts::test_1 - OSError: out of pty devices ERROR test_quota.py::TestQuota::test_1 - OSError: out of pty devices ERROR test_quota.py::TestQuota::test_2 - OSError: out of pty devices ERROR test_quotacheck.py::TestQuotacheck::test_1 - OSError: out of pty devices ERROR test_quotaon.py::TestQuotaon::test_1 - OSError: out of pty devices ERROR test_radvdump.py::TestRadvdump::test_1 - OSError: out of pty devices ERROR test_radvdump.py::TestRadvdump::test_2 - OSError: out of pty devices ERROR test_rcs.py::TestRcs::test_1 - OSError: out of pty devices ERROR test_rcsdiff.py::TestRcsdiff::test_1 - OSError: out of pty devices ERROR test_rdesktop.py::TestRdesktop::test_1 - OSError: out of pty devices ERROR test_rdict.py::TestRdict::test_1 - OSError: out of pty devices ERROR test_readelf.py::TestReadelf::test_1 - OSError: out of pty devices ERROR test_readonly.py::TestReadonly::test_1 - OSError: out of pty devices ERROR test_remove_members.py::TestRemoveMembers::test_1 - OSError: [Errno 24]... ERROR test_removepkg.py::TestRemovepkg::test_1 - OSError: [Errno 24] Too many... ERROR test_removepkg.py::TestRemovepkg::test_2 - OSError: [Errno 24] Too many... ERROR test_renice.py::TestRenice::test_1 - OSError: [Errno 24] Too many open ... ERROR test_renice.py::TestRenice::test_2 - OSError: [Errno 24] Too many open ... ERROR test_repomanage.py::TestRepomanage::test_1 - OSError: [Errno 24] Too ma... ERROR test_repomanage.py::TestRepomanage::test_2 - OSError: [Errno 24] Too ma... ERROR test_reportbug.py::TestReportbug::test_1 - OSError: [Errno 24] Too many... ERROR test_reptyr.py::TestReptyr::test_1 - OSError: [Errno 24] Too many open ... ERROR test_reptyr.py::TestReptyr::test_2 - OSError: [Errno 24] Too many open ... ERROR test_resolvconf.py::TestResolvconf::test_1 - OSError: [Errno 24] Too ma... ERROR test_rfcomm.py::TestRfcomm::test_1 - OSError: [Errno 24] Too many open ... ERROR test_rfkill.py::TestRfkill::test_1 - OSError: [Errno 24] Too many open ... ERROR test_rfkill.py::TestRfkill::test_2 - OSError: [Errno 24] Too many open ... ERROR test_ri.py::TestRi::test_1 - OSError: [Errno 24] Too many open files ERROR test_ri.py::TestRi::test_2 - OSError: [Errno 24] Too many open files ERROR test_ri.py::TestRi::test_3 - OSError: [Errno 24] Too many open files ERROR test_rlog.py::TestRlog::test_1 - OSError: [Errno 24] Too many open files ERROR test_rm.py::TestRm::test_1 - OSError: [Errno 24] Too many open files ERROR test_rm.py::TestRm::test_options - OSError: [Errno 24] Too many open files ERROR test_rmdir.py::TestRmdir::test_1 - OSError: [Errno 24] Too many open files ERROR test_rmdir.py::TestRmdir::test_2 - OSError: [Errno 24] Too many open files ERROR test_rmdir.py::TestRmdir::test_options - OSError: [Errno 24] Too many o... ERROR test_rmlist.py::TestRmlist::test_1 - OSError: [Errno 24] Too many open ... ERROR test_rmmod.py::TestRmmod::test_1 - OSError: [Errno 24] Too many open files ERROR test_route.py::TestRoute::test_1 - OSError: [Errno 24] Too many open files ERROR test_rpcdebug.py::TestRpcdebug::test_1 - OSError: [Errno 24] Too many o... ERROR test_rpm.py::TestRpm::test_1 - OSError: [Errno 24] Too many open files ERROR test_rpm.py::TestRpm::test_2 - OSError: [Errno 24] Too many open files ERROR test_rpm.py::TestRpm::test_3 - OSError: [Errno 24] Too many open files ERROR test_rpm2tgz.py::TestRpm2tgz::test_1 - OSError: [Errno 24] Too many ope... ERROR test_rpm2tgz.py::TestRpm2tgz::test_2 - OSError: [Errno 24] Too many ope... ERROR test_rpmbuild.py::TestRpmbuild::test_1 - OSError: [Errno 24] Too many o... ERROR test_rrdtool.py::TestRrdtool::test_1 - OSError: [Errno 24] Too many ope... ERROR test_rsync.py::TestRsync::test_1 - OSError: [Errno 24] Too many open files ERROR test_rsync.py::TestRsync::test_2 - OSError: [Errno 24] Too many open files ERROR test_rsync.py::TestRsync::test_3 - OSError: [Errno 24] Too many open files ERROR test_rtcwake.py::TestRtcwake::test_1 - OSError: [Errno 24] Too many ope... ERROR test_rtcwake.py::TestRtcwake::test_2 - OSError: [Errno 24] Too many ope... ERROR test_runuser.py::TestRunuser::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sbcl.py::TestSbcl::test_1 - OSError: [Errno 24] Too many open files ERROR test_sbcl_mt.py::TestSbclMt::test_1 - OSError: [Errno 24] Too many open... ERROR test_sbopkg.py::TestSbopkg::test_1 - OSError: [Errno 24] Too many open ... ERROR test_scp.py::TestScp::test_basic - OSError: [Errno 24] Too many open files ERROR test_scp.py::TestScp::test_basic_spaced_conf - OSError: [Errno 24] Too ... ERROR test_scp.py::TestScp::test_capital_f_without_space - OSError: [Errno 24... ERROR test_scp.py::TestScp::test_live - OSError: [Errno 24] Too many open files ERROR test_screen.py::TestScreen::test_1 - OSError: [Errno 24] Too many open ... ERROR test_screen.py::TestScreen::test_2 - OSError: [Errno 24] Too many open ... ERROR test_screen.py::TestScreen::test_3 - OSError: [Errno 24] Too many open ... ERROR test_screen.py::TestScreen::test_4 - OSError: [Errno 24] Too many open ... ERROR test_screen.py::TestScreen::test_5 - OSError: [Errno 24] Too many open ... ERROR test_screen.py::TestScreen::test_telnet - OSError: [Errno 24] Too many ... ERROR test_screen.py::TestScreen::test_not_telnet - OSError: [Errno 24] Too m... ERROR test_screen.py::TestScreen::test_telnet_first_arg - OSError: [Errno 24]... ERROR test_screen.py::TestScreen::test_telnet_other_args - OSError: [Errno 24... ERROR test_screen.py::TestScreen::test_serial_2nd_arg - OSError: [Errno 24] T... ERROR test_screen.py::TestScreen::test_serial_3rdplus_arg - OSError: [Errno 2... ERROR test_scrub.py::TestScrub::test_1 - OSError: [Errno 24] Too many open files ERROR test_scrub.py::TestScrub::test_2 - OSError: [Errno 24] Too many open files ERROR test_scrub.py::TestScrub::test_3 - OSError: [Errno 24] Too many open files ERROR test_sdptool.py::TestSdptool::test_1 - OSError: [Errno 24] Too many ope... ERROR test_secret_tool.py::TestSecretTool::test_modes - OSError: [Errno 24] T... ERROR test_secret_tool.py::TestSecretTool::test_no_complete - OSError: [Errno... ERROR test_sed.py::TestSed::test_1 - OSError: [Errno 24] Too many open files ERROR test_seq.py::TestSeq::test_1 - OSError: [Errno 24] Too many open files ERROR test_service.py::TestService::test_1 - OSError: [Errno 24] Too many ope... ERROR test_set.py::TestSet::test_1 - OSError: [Errno 24] Too many open files ERROR test_setquota.py::TestSetquota::test_1 - OSError: [Errno 24] Too many o... ERROR test_setquota.py::TestSetquota::test_2 - OSError: [Errno 24] Too many o... ERROR test_sftp.py::TestSftp::test_1 - OSError: [Errno 24] Too many open files ERROR test_sftp.py::TestSftp::test_2 - OSError: [Errno 24] Too many open files ERROR test_sftp.py::TestSftp::test_hosts - OSError: [Errno 24] Too many open ... ERROR test_sftp.py::TestSftp::test_hosts_spaced_conf - OSError: [Errno 24] To... ERROR test_sftp.py::TestSftp::test_capital_f_without_space - OSError: [Errno ... ERROR test_sh.py::TestSh::test_1 - OSError: [Errno 24] Too many open files ERROR test_sh.py::TestSh::test_2 - OSError: [Errno 24] Too many open files ERROR test_sh.py::TestSh::test_3 - OSError: [Errno 24] Too many open files ERROR test_sh.py::TestSh::test_4 - OSError: [Errno 24] Too many open files ERROR test_sha1sum.py::TestSha1sum::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sha256sum.py::TestSha256sum::test_options - OSError: [Errno 24] To... ERROR test_sha256sum.py::TestSha256sum::test_summing - OSError: [Errno 24] To... ERROR test_sha256sum.py::TestSha256sum::test_checking - OSError: [Errno 24] T... ERROR test_shar.py::TestShar::test_1 - OSError: [Errno 24] Too many open files ERROR test_shellcheck.py::TestShellcheck::test_1 - OSError: [Errno 24] Too ma... ERROR test_shellcheck.py::TestShellcheck::test_2 - OSError: [Errno 24] Too ma... ERROR test_shellcheck.py::TestShellcheck::test_3 - OSError: [Errno 24] Too ma... ERROR test_shellcheck.py::TestShellcheck::test_4 - OSError: [Errno 24] Too ma... ERROR test_sitecopy.py::TestSitecopy::test_1 - OSError: [Errno 24] Too many o... ERROR test_slackpkg.py::TestSlackpkg::test_1 - OSError: [Errno 24] Too many o... ERROR test_slapt_get.py::TestSlaptGet::test_1 - OSError: [Errno 24] Too many ... ERROR test_slapt_get.py::TestSlaptGet::test_2 - OSError: [Errno 24] Too many ... ERROR test_slapt_get.py::TestSlaptGet::test_3 - OSError: [Errno 24] Too many ... ERROR test_slapt_get.py::TestSlaptGet::test_install - OSError: [Errno 24] Too... ERROR test_slapt_src.py::TestSlaptSrc::test_1 - OSError: [Errno 24] Too many ... ERROR test_slapt_src.py::TestSlaptSrc::test_2 - OSError: [Errno 24] Too many ... ERROR test_slapt_src.py::TestSlaptSrc::test_3 - OSError: [Errno 24] Too many ... ERROR test_slapt_src.py::TestSlaptSrc::test_install - OSError: [Errno 24] Too... ERROR test_smartctl.py::TestSmartctl::test_1 - OSError: [Errno 24] Too many o... ERROR test_smbcacls.py::TestSmbcacls::test_1 - OSError: [Errno 24] Too many o... ERROR test_smbclient.py::TestSmbclient::test_1 - OSError: [Errno 24] Too many... ERROR test_smbcquotas.py::TestSmbcquotas::test_1 - OSError: [Errno 24] Too ma... ERROR test_smbget.py::TestSmbget::test_1 - OSError: [Errno 24] Too many open ... ERROR test_smbpasswd.py::TestSmbpasswd::test_1 - OSError: [Errno 24] Too many... ERROR test_smbtar.py::TestSmbtar::test_1 - OSError: [Errno 24] Too many open ... ERROR test_smbtree.py::TestSmbtree::test_1 - OSError: [Errno 24] Too many ope... ERROR test_snownews.py::TestSnownews::test_1 - OSError: [Errno 24] Too many o... ERROR test_sort.py::TestSort::test_1 - OSError: [Errno 24] Too many open files ERROR test_split.py::TestSplit::test_1 - OSError: [Errno 24] Too many open files ERROR test_spovray.py::TestSpovray::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sqlite3.py::TestSqlite3::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sqlite3.py::TestSqlite3::test_2 - OSError: [Errno 24] Too many ope... ERROR test_sqlite3.py::TestSqlite3::test_3 - OSError: [Errno 24] Too many ope... ERROR test_ss.py::TestSs::test_1 - OSError: [Errno 24] Too many open files ERROR test_ss.py::TestSs::test_2 - OSError: [Errno 24] Too many open files ERROR test_ss.py::TestSs::test_3 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_1 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_2 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_3 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_4 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_6 - OSError: [Errno 24] Too many open files ERROR test_ssh.py::TestSsh::test_capital_f_without_space - OSError: [Errno 24... ERROR test_ssh.py::TestSsh::test_capital_f_nonexistent - OSError: [Errno 24] ... ERROR test_ssh.py::TestSsh::test_partial_hostname - OSError: [Errno 24] Too m... ERROR test_ssh.py::TestSsh::test_protocol_option_bundling[4] - OSError: [Errn... ERROR test_ssh.py::TestSsh::test_protocol_option_bundling[6] - OSError: [Errn... ERROR test_ssh.py::TestSsh::test_protocol_option_bundling[9] - OSError: [Errn... ERROR test_ssh_add.py::TestSshAdd::test_1 - OSError: [Errno 24] Too many open... ERROR test_ssh_add.py::TestSshAdd::test_2 - OSError: [Errno 24] Too many open... ERROR test_ssh_copy_id.py::TestSshCopyId::test_1 - OSError: [Errno 24] Too ma... ERROR test_ssh_keygen.py::TestSshKeygen::test_1 - OSError: [Errno 24] Too man... ERROR test_ssh_keygen.py::TestSshKeygen::test_filedir_pub_at_end_of_s - OSErr... ERROR test_ssh_keygen.py::TestSshKeygen::test_usernames_for_n - OSError: [Err... ERROR test_ssh_keygen.py::TestSshKeygen::test_host_for_h_n - OSError: [Errno ... ERROR test_ssh_keygen.py::TestSshKeygen::test_n_with_Y - OSError: [Errno 24] ... ERROR test_ssh_keygen.py::TestSshKeygen::test_r_without_Y - OSError: [Errno 2... ERROR test_ssh_keygen.py::TestSshKeygen::test_r_with_Y - OSError: [Errno 24] ... ERROR test_ssh_keygen.py::TestSshKeygen::test_ecdsa_b - OSError: [Errno 24] T... ERROR test_ssh_keygen.py::TestSshKeygen::test_ecdsa_sk_b - OSError: [Errno 24... ERROR test_ssh_keygen.py::TestSshKeygen::test_O - OSError: [Errno 24] Too man... ERROR test_ssh_keygen.py::TestSshKeygen::test_O_force_command - OSError: [Err... ERROR test_ssh_keygen.py::TestSshKeygen::test_O_unknown - OSError: [Errno 24]... ERROR test_sshfs.py::TestSshfs::test_1 - OSError: [Errno 24] Too many open files ERROR test_sshmitm.py::TestSshmitm::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sshow.py::TestSshow::test_1 - OSError: [Errno 24] Too many open files ERROR test_strace.py::TestStrace::test_1 - OSError: [Errno 24] Too many open ... ERROR test_stream.py::TestStream::test_1 - OSError: [Errno 24] Too many open ... ERROR test_strings.py::TestStrings::test_1 - OSError: [Errno 24] Too many ope... ERROR test_strings.py::TestStrings::test_2 - OSError: [Errno 24] Too many ope... ERROR test_strip.py::TestStrip::test_1 - OSError: [Errno 24] Too many open files ERROR test_su.py::TestSu::test_1 - OSError: [Errno 24] Too many open files ERROR test_su.py::TestSu::test_2 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_1 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_2 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_3 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_4 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_5 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_6 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_7 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_8 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_9[funky\\ user:] - OSError: [Errno 24] Too... ERROR test_sudo.py::TestSudo::test_9[funky.user:] - OSError: [Errno 24] Too m... ERROR test_sudo.py::TestSudo::test_9[funky\\.user:] - OSError: [Errno 24] Too... ERROR test_sudo.py::TestSudo::test_9[fu\\ nky.user:] - OSError: [Errno 24] To... ERROR test_sudo.py::TestSudo::test_9[f\\ o\\ o\\.\\bar:] - OSError: [Errno 24... ERROR test_sudo.py::TestSudo::test_9[foo\\_b\\ a\\.r\\ :] - OSError: [Errno 2... ERROR test_sudo.py::TestSudo::test_10 - OSError: [Errno 24] Too many open files ERROR test_sudo.py::TestSudo::test_11 - OSError: [Errno 24] Too many open files ERROR test_sum.py::TestSum::test_1 - OSError: [Errno 24] Too many open files ERROR test_sum.py::TestSum::test_options - OSError: [Errno 24] Too many open ... ERROR test_svcadm.py::TestSvcadm::test_1 - OSError: [Errno 24] Too many open ... ERROR test_svk.py::TestSvk::test_1 - OSError: [Errno 24] Too many open files ERROR test_svn.py::TestSvn::test_1 - OSError: [Errno 24] Too many open files ERROR test_svnadmin.py::TestSvnadmin::test_1 - OSError: [Errno 24] Too many o... ERROR test_svnlook.py::TestSvnlook::test_1 - OSError: [Errno 24] Too many ope... ERROR test_sync_members.py::TestSyncMembers::test_1 - OSError: [Errno 24] Too... ERROR test_synclient.py::TestSynclient::test_1 - OSError: [Errno 24] Too many... ERROR test_synclient.py::TestSynclient::test_2 - OSError: [Errno 24] Too many... ERROR test_sysbench.py::TestSysbench::test_1 - OSError: [Errno 24] Too many o... ERROR test_sysbench.py::TestSysbench::test_2 - OSError: [Errno 24] Too many o... ERROR test_sysctl.py::TestSysctl::test_1 - OSError: [Errno 24] Too many open ... ERROR test_sysctl.py::TestSysctl::test_2 - OSError: [Errno 24] Too many open ... ERROR test_tac.py::TestTac::test_1 - OSError: [Errno 24] Too many open files ERROR test_tail.py::TestTail::test_1 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_1 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_2 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_3 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_4 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_5 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_6 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_7 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_8 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_9 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_10 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_11 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_12 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_13 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_14 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_15 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_16 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_17 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_18 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_19 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_20 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_21 - OSError: [Errno 24] Too many open files ERROR test_tar.py::TestTar::test_22 - OSError: [Errno 24] Too many open files ERROR test_tcpdump.py::TestTcpdump::test_1 - OSError: [Errno 24] Too many ope... ERROR test_tcpkill.py::TestTcpkill::test_1 - OSError: [Errno 24] Too many ope... ERROR test_tcpnice.py::TestTcpnice::test_1 - OSError: [Errno 24] Too many ope... ERROR test_tee.py::TestTee::test_1 - OSError: [Errno 24] Too many open files ERROR test_tee.py::TestTee::test_options - OSError: [Errno 24] Too many open ... ERROR test_texindex.py::TestTexindex::test_1 - OSError: [Errno 24] Too many o... ERROR test_tightvncviewer.py::TestTightvncviewer::test_1 - OSError: [Errno 24... ERROR test_time.py::TestTime::test_command - OSError: [Errno 24] Too many ope... ERROR test_time.py::TestTime::test_2 - OSError: [Errno 24] Too many open files ERROR test_time.py::TestTime::test_3 - OSError: [Errno 24] Too many open files ERROR test_timeout.py::TestTimeout::test_1 - OSError: [Errno 24] Too many ope... ERROR test_timeout.py::TestTimeout::test_2 - OSError: [Errno 24] Too many ope... ERROR test_tipc.py::TestTipc::test_1 - OSError: [Errno 24] Too many open files ERROR test_totem.py::TestTotem::test_basic - OSError: [Errno 24] Too many ope... ERROR test_touch.py::TestTouch::test_1 - OSError: [Errno 24] Too many open files ERROR test_tox.py::TestTox::test_1 - OSError: [Errno 24] Too many open files ERROR test_tox.py::TestTox::test_2 - OSError: [Errno 24] Too many open files ERROR test_tox.py::TestTox::test_3 - OSError: [Errno 24] Too many open files ERROR test_tox.py::TestTox::test_default_after_dashdash - OSError: [Errno 24]... ERROR test_tr.py::TestTr::test_1 - OSError: [Errno 24] Too many open files ERROR test_tracepath.py::TestTracepath::test_1 - OSError: [Errno 24] Too many... ERROR test_tracepath.py::TestTracepath::test_2 - OSError: [Errno 24] Too many... ERROR test_tshark.py::TestTshark::test_1 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_2 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_3 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_4 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_5 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_6 - OSError: [Errno 24] Too many open ... ERROR test_tshark.py::TestTshark::test_input_files - OSError: [Errno 24] Too ... ERROR test_tsig_keygen.py::TestTsigKeygen::test_basic - OSError: [Errno 24] T... ERROR test_tsig_keygen.py::TestTsigKeygen::test_options - OSError: [Errno 24]... ERROR test_tune2fs.py::TestTune2fs::test_1 - OSError: [Errno 24] Too many ope... ERROR test_tune2fs.py::TestTune2fs::test_2 - OSError: [Errno 24] Too many ope... ERROR test_udevadm.py::TestUdevadm::test_1 - OSError: [Errno 24] Too many ope... ERROR test_udevadm.py::TestUdevadm::test_2 - OSError: [Errno 24] Too many ope... ERROR test_ulimit.py::TestUlimit::test_1 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_2 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_3 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_4 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_5 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_6 - OSError: [Errno 24] Too many open ... ERROR test_ulimit.py::TestUlimit::test_7 - OSError: [Errno 24] Too many open ... ERROR test_umount.py::TestUmount::test_1 - OSError: [Errno 24] Too many open ... ERROR test_umount.py::TestUmount::test_mnt_basic - OSError: [Errno 24] Too ma... ERROR test_umount.py::TestUmount::test_mnt_space - OSError: [Errno 24] Too ma... ERROR test_umount.py::TestUmount::test_mnt_dollar - OSError: [Errno 24] Too m... ERROR test_umount.py::TestUmount::test_mnt_backslash - OSError: [Errno 24] To... ERROR test_umount.py::TestUmount::test_mnt_after_space - OSError: [Errno 24] ... ERROR test_umount.py::TestUmount::test_mnt_at_dollar - OSError: [Errno 24] To... ERROR test_umount.py::TestUmount::test_mnt_at_quote - OSError: [Errno 24] Too... ERROR test_umount.py::TestUmount::test_mnt_other - OSError: [Errno 24] Too ma... ERROR test_umount.py::TestUmount::test_mnt_label_space - OSError: [Errno 24] ... ERROR test_umount.py::TestUmount::test_mnt_label_quote - OSError: [Errno 24] ... ERROR test_umount.py::TestUmount::test_linux_fstab_unescape - OSError: [Errno... ERROR test_unace.py::TestUnace::test_1 - OSError: [Errno 24] Too many open files ERROR test_uname.py::TestUname::test_1 - OSError: [Errno 24] Too many open files ERROR test_unexpand.py::TestUnexpand::test_1 - OSError: [Errno 24] Too many o... ERROR test_uniq.py::TestUniq::test_1 - OSError: [Errno 24] Too many open files ERROR test_units.py::TestUnits::test_1 - OSError: [Errno 24] Too many open files ERROR test_unpack200.py::TestUnpack200::test_1 - OSError: [Errno 24] Too many... ERROR test_unrar.py::TestUnrar::test_1 - OSError: [Errno 24] Too many open files ERROR test_unset.py::TestUnset::test_1 - OSError: [Errno 24] Too many open files ERROR test_unshunt.py::TestUnshunt::test_1 - OSError: [Errno 24] Too many ope... ERROR test_update_alternatives.py::TestUpdateAlternatives::test_1 - OSError: ... ERROR test_update_rc_d.py::TestUpdateRcD::test_1 - OSError: [Errno 24] Too ma... ERROR test_upgradepkg.py::TestUpgradepkg::test_1 - OSError: [Errno 24] Too ma... ERROR test_upgradepkg.py::TestUpgradepkg::test_2 - OSError: [Errno 24] Too ma... ERROR test_upgradepkg.py::TestUpgradepkg::test_4 - OSError: [Errno 24] Too ma... ERROR test_upgradepkg.py::TestUpgradepkg::test_after_percent - OSError: [Errn... ERROR test_urlsnarf.py::TestUrlsnarf::test_1 - OSError: [Errno 24] Too many o... ERROR test_uscan.py::TestUscan::test_1 - OSError: [Errno 24] Too many open files ERROR test_useradd.py::TestUseradd::test_1 - OSError: [Errno 24] Too many ope... ERROR test_useradd.py::TestUseradd::test_2 - OSError: [Errno 24] Too many ope... ERROR test_useradd.py::TestUseradd::test_chroot_shells - OSError: [Errno 24] ... ERROR test_userdel.py::TestUserdel::test_1 - OSError: [Errno 24] Too many ope... ERROR test_userdel.py::TestUserdel::test_2 - OSError: [Errno 24] Too many ope... ERROR test_usermod.py::TestUsermod::test_1 - OSError: [Errno 24] Too many ope... ERROR test_usermod.py::TestUsermod::test_2 - OSError: [Errno 24] Too many ope... ERROR test_usermod.py::TestUsermod::test_chroot_shells - OSError: [Errno 24] ... ERROR test_valgrind.py::TestValgrind::test_1 - OSError: [Errno 24] Too many o... ERROR test_valgrind.py::TestValgrind::test_2 - OSError: [Errno 24] Too many o... ERROR test_valgrind.py::TestValgrind::test_3 - OSError: [Errno 24] Too many o... ERROR test_valgrind.py::TestValgrind::test_4 - OSError: [Errno 24] Too many o... ERROR test_valgrind.py::TestValgrind::test_5 - OSError: [Errno 24] Too many o... ERROR test_vdir.py::TestVdir::test_1 - OSError: [Errno 24] Too many open files ERROR test_vdir.py::TestVdir::test_options - OSError: [Errno 24] Too many ope... ERROR test_vgcfgbackup.py::TestVgcfgbackup::test_1 - OSError: [Errno 24] Too ... ERROR test_vgcfgrestore.py::TestVgcfgrestore::test_1 - OSError: [Errno 24] To... ERROR test_vgchange.py::TestVgchange::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgck.py::TestVgck::test_1 - OSError: [Errno 24] Too many open files ERROR test_vgconvert.py::TestVgconvert::test_1 - OSError: [Errno 24] Too many... ERROR test_vgcreate.py::TestVgcreate::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgcreate.py::TestVgcreate::test_2 - OSError: [Errno 24] Too many o... ERROR test_vgdisplay.py::TestVgdisplay::test_1 - OSError: [Errno 24] Too many... ERROR test_vgexport.py::TestVgexport::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgextend.py::TestVgextend::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgimport.py::TestVgimport::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgmerge.py::TestVgmerge::test_1 - OSError: [Errno 24] Too many ope... ERROR test_vgmknodes.py::TestVgmknodes::test_1 - OSError: [Errno 24] Too many... ERROR test_vgreduce.py::TestVgreduce::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgremove.py::TestVgremove::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgrename.py::TestVgrename::test_1 - OSError: [Errno 24] Too many o... ERROR test_vgs.py::TestVgs::test_1 - OSError: [Errno 24] Too many open files ERROR test_vgscan.py::TestVgscan::test_1 - OSError: [Errno 24] Too many open ... ERROR test_vgsplit.py::TestVgsplit::test_1 - OSError: [Errno 24] Too many ope... ERROR test_vi.py::TestVi::test_1 - OSError: [Errno 24] Too many open files ERROR test_vi.py::TestVi::test_2 - OSError: [Errno 24] Too many open files ERROR test_vipw.py::TestVipw::test_1 - OSError: [Errno 24] Too many open files ERROR test_vmstat.py::TestVmstat::test_1 - OSError: [Errno 24] Too many open ... ERROR test_vncviewer.py::TestVncviewer::test_1 - OSError: [Errno 24] Too many... ERROR test_vpnc.py::TestVpnc::test_1 - OSError: [Errno 24] Too many open files ERROR test_watch.py::TestWatch::test_1 - OSError: [Errno 24] Too many open files ERROR test_wc.py::TestWc::test_1 - OSError: [Errno 24] Too many open files ERROR test_webmitm.py::TestWebmitm::test_1 - OSError: [Errno 24] Too many ope... ERROR test_wget.py::TestWget::test_1 - OSError: [Errno 24] Too many open files ERROR test_wget.py::TestWget::test_2 - OSError: [Errno 24] Too many open files ERROR test_who.py::TestWho::test_1 - OSError: [Errno 24] Too many open files ERROR test_wine.py::TestWine::test_1 - OSError: [Errno 24] Too many open files ERROR test_wine.py::TestWine::test_2 - OSError: [Errno 24] Too many open files ERROR test_wine.py::TestWine::test_no_complete_after_help - OSError: [Errno 2... ERROR test_withlist.py::TestWithlist::test_1 - OSError: [Errno 24] Too many o... ERROR test_wodim.py::TestWodim::test_1 - OSError: [Errno 24] Too many open files ERROR test_wol.py::TestWol::test_1 - OSError: [Errno 24] Too many open files ERROR test_wol.py::TestWol::test_2 - OSError: [Errno 24] Too many open files ERROR test_wol.py::TestWol::test_3 - OSError: [Errno 24] Too many open files ERROR test_write.py::TestWrite::test_1 - OSError: [Errno 24] Too many open files ERROR test_wsimport.py::TestWsimport::test_1 - OSError: [Errno 24] Too many o... ERROR test_wsimport.py::TestWsimport::test_2 - OSError: [Errno 24] Too many o... ERROR test_wtf.py::TestWtf::test_1 - OSError: [Errno 24] Too many open files ERROR test_wvdial.py::TestWvdial::test_1 - OSError: [Errno 24] Too many open ... ERROR test_xdg_mime.py::TestXdgMime::test_1 - OSError: [Errno 24] Too many op... ERROR test_xdg_mime.py::TestXdgMime::test_2 - OSError: [Errno 24] Too many op... ERROR test_xdg_mime.py::TestXdgMime::test_3 - OSError: [Errno 24] Too many op... ERROR test_xdg_mime.py::TestXdgMime::test_4 - OSError: [Errno 24] Too many op... ERROR test_xdg_mime.py::TestXdgMime::test_5 - OSError: [Errno 24] Too many op... ERROR test_xdg_mime.py::TestXdgMime::test_6 - OSError: [Errno 24] Too many op... ERROR test_xdg_settings.py::TestXdgSettings::test_1 - OSError: [Errno 24] Too... ERROR test_xdg_settings.py::TestXdgSettings::test_2 - OSError: [Errno 24] Too... ERROR test_xdg_settings.py::TestXdgSettings::test_3 - OSError: [Errno 24] Too... ERROR test_xfreerdp.py::TestXfreerdp::test_1 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_2 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_3 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_4 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_5 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_6 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_7 - OSError: [Errno 24] Too many o... ERROR test_xfreerdp.py::TestXfreerdp::test_rdp_files - OSError: [Errno 24] To... ERROR test_xgamma.py::TestXgamma::test_1 - OSError: [Errno 24] Too many open ... ERROR test_xgamma.py::TestXgamma::test_2 - OSError: [Errno 24] Too many open ... ERROR test_xhost.py::TestXhost::test_hosts[+] - OSError: [Errno 24] Too many ... ERROR test_xhost.py::TestXhost::test_hosts[-] - OSError: [Errno 24] Too many ... ERROR test_xhost.py::TestXhost::test_hosts[] - OSError: [Errno 24] Too many o... ERROR test_xhost.py::TestXhost::test_partial_hosts[+] - OSError: [Errno 24] T... ERROR test_xhost.py::TestXhost::test_partial_hosts[-] - OSError: [Errno 24] T... ERROR test_xhost.py::TestXhost::test_partial_hosts[] - OSError: [Errno 24] To... ERROR test_xm.py::TestXm::test_1 - OSError: [Errno 24] Too many open files ERROR test_xmllint.py::TestXmllint::test_1 - OSError: [Errno 24] Too many ope... ERROR test_xmllint.py::TestXmllint::test_2 - OSError: [Errno 24] Too many ope... ERROR test_xmlwf.py::TestXmlwf::test_1 - OSError: [Errno 24] Too many open files ERROR test_xmlwf.py::TestXmlwf::test_2 - OSError: [Errno 24] Too many open files ERROR test_xmms.py::TestXmms::test_1 - OSError: [Errno 24] Too many open files ERROR test_xmms.py::TestXmms::test_2 - OSError: [Errno 24] Too many open files ERROR test_xmodmap.py::TestXmodmap::test_1 - OSError: [Errno 24] Too many ope... ERROR test_xmodmap.py::TestXmodmap::test_2 - OSError: [Errno 24] Too many ope... ERROR test_xpovray.py::TestXpovray::test_1 - OSError: [Errno 24] Too many ope... ERROR test_xrandr.py::TestXrandr::test_no_args - OSError: [Errno 24] Too many... ERROR test_xrandr.py::TestXrandr::test_single_dash - OSError: [Errno 24] Too ... ERROR test_xrandr.py::TestXrandr::test_output - OSError: [Errno 24] Too many ... ERROR test_xrandr.py::TestXrandr::test_output_left_of - OSError: [Errno 24] T... ERROR test_xrandr.py::TestXrandr::test_output_reflect - OSError: [Errno 24] T... ERROR test_xrandr.py::TestXrandr::test_output_reflect_nooutput - OSError: [Er... ERROR test_xrandr.py::TestXrandr::test_output_rotate - OSError: [Errno 24] To... ERROR test_xrandr.py::TestXrandr::test_output_rotate_nooutput - OSError: [Err... ERROR test_xrandr.py::TestXrandr::test_output_filter - OSError: [Errno 24] To... ERROR test_xrandr.py::TestXrandr::test_output_mode - OSError: [Errno 24] Too ... ERROR test_xrandr.py::TestXrandr::test_output_mode_nooutput - OSError: [Errno... ERROR test_xrandr.py::TestXrandr::test_addmode_first - OSError: [Errno 24] To... ERROR test_xrandr.py::TestXrandr::test_addmode_second - OSError: [Errno 24] T... ERROR test_xrandr.py::TestXrandr::test_delmode_first - OSError: [Errno 24] To... ERROR test_xrandr.py::TestXrandr::test_delmode_second - OSError: [Errno 24] T... ERROR test_xrandr.py::TestXrandr::test_dpi - OSError: [Errno 24] Too many ope... ERROR test_xrandr.py::TestXrandr::test_orientation - OSError: [Errno 24] Too ... ERROR test_xrandr.py::TestXrandr::test_setmonitor_second - OSError: [Errno 24... ERROR test_xrandr.py::TestXrandr::test_setmonitor_third - OSError: [Errno 24]... ERROR test_xrandr.py::TestXrandr::test_delmonitor - OSError: [Errno 24] Too m... ERROR test_xrandr.py::TestXrandr::test_setprovideroutputsource_first - OSErro... ERROR test_xrandr.py::TestXrandr::test_setprovideroutputsource_second - OSErr... ERROR test_xrandr.py::TestXrandr::test_setprovideroffloadsink_first - OSError... ERROR test_xrandr.py::TestXrandr::test_setprovideroffloadsink_second - OSErro... ERROR test_xrdb.py::TestXrdb::test_1 - OSError: [Errno 24] Too many open files ERROR test_xrdb.py::TestXrdb::test_2 - OSError: [Errno 24] Too many open files ERROR test_xsltproc.py::TestXsltproc::test_1 - OSError: [Errno 24] Too many o... ERROR test_xsltproc.py::TestXsltproc::test_2 - OSError: [Errno 24] Too many o... ERROR test_xvfb_run.py::TestXvfbRun::test_no_args - OSError: [Errno 24] Too m... ERROR test_xvfb_run.py::TestXvfbRun::test_options - OSError: [Errno 24] Too m... ERROR test_xvnc4viewer.py::TestXvnc4viewer::test_1 - OSError: [Errno 24] Too ... ERROR test_xvnc4viewer.py::TestXvnc4viewer::test_2 - OSError: [Errno 24] Too ... ERROR test_xvnc4viewer.py::TestXvnc4viewer::test_3 - OSError: [Errno 24] Too ... ERROR test_xxd.py::TestXxd::test_1 - OSError: [Errno 24] Too many open files ERROR test_xxd.py::TestXxd::test_2 - OSError: [Errno 24] Too many open files ERROR test_xz.py::TestXz::test_1 - OSError: [Errno 24] Too many open files ERROR test_xz.py::TestXz::test_2 - OSError: [Errno 24] Too many open files ERROR test_xz.py::TestXz::test_3 - OSError: [Errno 24] Too many open files ERROR test_xz.py::TestXz::test_4 - OSError: [Errno 24] Too many open files ERROR test_xz.py::TestXz::test_5 - OSError: [Errno 24] Too many open files ERROR test_xzdec.py::TestXzdec::test_1 - OSError: [Errno 24] Too many open files ERROR test_xzdec.py::TestXzdec::test_2 - OSError: [Errno 24] Too many open files ERROR test_ypcat.py::TestYpcat::test_1 - OSError: [Errno 24] Too many open files ERROR test_ypmatch.py::TestYpmatch::test_1 - OSError: [Errno 24] Too many ope... ERROR test_yum.py::TestYum::test_1 - OSError: [Errno 24] Too many open files ERROR test_yum_arch.py::TestYumArch::test_1 - OSError: [Errno 24] Too many op... ERROR test_zopfli.py::TestZopfli::test_1 - OSError: [Errno 24] Too many open ... ERROR test_zopfli.py::TestZopfli::test_2 - OSError: [Errno 24] Too many open ... ERROR test_zopfli.py::TestZopfli::test_3 - OSError: [Errno 24] Too many open ... ERROR test_zopflipng.py::TestZopflipng::test_1 - OSError: [Errno 24] Too many... ERROR test_zopflipng.py::TestZopflipng::test_2 - OSError: [Errno 24] Too many... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_1 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_2 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_3 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_4 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_5 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_6 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_7 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_8 - OSError: [Err... ERROR unit/test_unit_count_args.py::TestUnitCountArgs::test_9 - OSError: [Err... ERROR unit/test_unit_expand.py::TestUnitExpand::test_1 - OSError: [Errno 24] ... ERROR unit/test_unit_expand.py::TestUnitExpand::test_2 - OSError: [Errno 24] ... ERROR unit/test_unit_expand.py::TestUnitExpand::test_user_home_compreply - OS... ERROR unit/test_unit_expand.py::TestUnitExpand::test_user_home_cur - OSError:... ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_1 ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_2 ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded0-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded0-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded1-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded1-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded2-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded2-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded3-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded3-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded4-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded4-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded5-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded5-False] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded6-True] ERROR unit/test_unit_expand_tilde_by_ref.py::TestUnitExpandTildeByRef::test_expand[suffix_expanded6-False] ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_1 - OSError: [Errno 24... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_2[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_2[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_3[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_3[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_4[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_4[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_5[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_5[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_6[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_6[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_7[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_7[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_8[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_8[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_9[f] - OSError: [Errno... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_9[f2] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_10[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_10[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_11[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_11[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_12[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_12[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_13[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_13[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_14[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_14[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_15 - OSError: [Errno 2... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_16 - OSError: [Errno 2... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_17[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_17[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_18[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_18[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_19[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_19[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_20[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_20[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_21[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_21[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_22[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_22[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_23[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_23[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_24[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_24[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_25[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_25[f2] - OSError: [Err... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_26[f] - OSError: [Errn... ERROR unit/test_unit_filedir.py::TestUnitFiledir::test_26[f2] - OSError: [Err... ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_1 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_2 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_3 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_4 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_5 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_6 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_7 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_8 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_9 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_10 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_11 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_12 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_13 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_14 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_15 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_16 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_17 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_18 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_19 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_20 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_21 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_22 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_23 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_24 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_25 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_26 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_27 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_28 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_29 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_30 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_31 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_32 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_33 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_34 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_35 ERROR unit/test_unit_get_comp_words_by_ref.py::TestUnitGetCompWordsByRef::test_unknown_arg_error ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_1 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_2 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_3 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_4 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_5 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_6 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_7 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_8 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_9 - OSError: [Errno... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_10 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_11 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_12 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_13 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_14 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_15 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_16 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_17 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_18 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_19 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_20 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_21 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_22 - OSError: [Errn... ERROR unit/test_unit_get_cword.py::TestUnitGetCword::test_23 - OSError: [Errn... ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_1 - OSE... ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_2 - OSE... ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_redirect[>] ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_redirect[>>] ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_redirect[2>] ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_redirect[<] ERROR unit/test_unit_init_completion.py::TestUnitInitCompletion::test_redirect[&>] ERROR unit/test_unit_ip_addresses.py::TestUnitIpAddresses::test_1 - OSError: ... ERROR unit/test_unit_ip_addresses.py::TestUnitIpAddresses::test_2 - OSError: ... ERROR unit/test_unit_ip_addresses.py::TestUnitIpAddresses::test_3 - OSError: ... ERROR unit/test_unit_ip_addresses.py::TestUnitIpAddresses::test_4 - OSError: ... ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_basic[--True] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_basic[--False] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_basic[user@-c-True] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_ip_filtering[4-127.0.0.1 localhost] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_ip_filtering[6-::1 localhost] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_ip_filtering[46-localhost] ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_consecutive_spaces ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_files_starting_with_tilde ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_included_configs ERROR unit/test_unit_known_hosts_real.py::TestUnitKnownHostsReal::test_no_globbing ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_1 - OSError: [Errno 24... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_2 - OSError: [Errno 24... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_3 - OSError: [Errno 24... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_no_dashdashdash - OSEr... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_no_trailingdash - OSEr... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_underscore - OSError: ... ERROR unit/test_unit_longopt.py::TestUnitLongopt::test_equals - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_1 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_2 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_3 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_4 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_5 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_6 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_7 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_8 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_9 - OSError: [Err... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_10 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_11 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_12 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_13 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_14 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_15 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_16 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_17 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_18 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_19 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_20 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_21 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_22 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_23 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_24 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_25 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_26 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_27 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_28 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_29 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_30 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_31 - OSError: [Er... ERROR unit/test_unit_parse_help.py::TestUnitParseHelp::test_32 - OSError: [Er... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_1 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_2 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_3 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_4 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_5 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_6 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_7 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_8 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_9 - OSError: [E... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_10 - OSError: [... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_11 - OSError: [... ERROR unit/test_unit_parse_usage.py::TestUnitParseUsage::test_12 - OSError: [... ERROR unit/test_unit_pgids.py::TestUnitPgids::test_smoke - OSError: [Errno 24... ERROR unit/test_unit_pgids.py::TestUnitPgids::test_non_pollution - OSError: [... ERROR unit/test_unit_pgids.py::TestUnitPgids::test_ints - OSError: [Errno 24]... ERROR unit/test_unit_pids.py::TestUnitPids::test_smoke - OSError: [Errno 24] ... ERROR unit/test_unit_pids.py::TestUnitPids::test_non_pollution - OSError: [Er... ERROR unit/test_unit_pids.py::TestUnitPids::test_ints - OSError: [Errno 24] T... ERROR unit/test_unit_pnames.py::TestUnitPnames::test_smoke - OSError: [Errno ... ERROR unit/test_unit_pnames.py::TestUnitPnames::test_non_pollution - OSError:... ERROR unit/test_unit_pnames.py::TestUnitPnames::test_something - OSError: [Er... ERROR unit/test_unit_quote.py::TestUnitQuote::test_1 - OSError: [Errno 24] To... ERROR unit/test_unit_quote.py::TestUnitQuote::test_2 - OSError: [Errno 24] To... ERROR unit/test_unit_quote.py::TestUnitQuote::test_3 - OSError: [Errno 24] To... ERROR unit/test_unit_quote.py::TestUnitQuote::test_4 - OSError: [Errno 24] To... ERROR unit/test_unit_quote.py::TestUnitQuote::test_5 - OSError: [Errno 24] To... ERROR unit/test_unit_quote_readline.py::TestUnitQuoteReadline::test_exec - OS... ERROR unit/test_unit_quote_readline.py::TestUnitQuoteReadline::test_env_non_pollution ERROR unit/test_unit_tilde.py::TestUnitTilde::test_1 - OSError: [Errno 24] To... ERROR unit/test_unit_tilde.py::TestUnitTilde::test_2 - OSError: [Errno 24] To... ERROR unit/test_unit_tilde.py::TestUnitTilde::test_3 - OSError: [Errno 24] To... ERROR unit/test_unit_tilde.py::TestUnitTilde::test_4 - OSError: [Errno 24] To... ERROR unit/test_unit_tilde.py::TestUnitTilde::test_5 - OSError: [Errno 24] To... ERROR unit/test_unit_variables.py::TestUnitVariables::test_simple_variable_name ERROR unit/test_unit_variables.py::TestUnitVariables::test_single_array_index ERROR unit/test_unit_variables.py::TestUnitVariables::test_multiple_array_indexes ERROR unit/test_unit_variables.py::TestUnitVariables::test_closing_curly_after_square ERROR unit/test_unit_variables.py::TestUnitVariables::test_closing_brackets_after_at ERROR unit/test_unit_variables.py::TestUnitVariables::test_hash_prefix - OSEr... ERROR unit/test_unit_xinetd_services.py::TestUnitXinetdServices::test_direct ERROR unit/test_unit_xinetd_services.py::TestUnitXinetdServices::test_env_non_pollution ERROR unit/test_unit_xinetd_services.py::TestUnitXinetdServices::test_basic =========== 13 passed, 10 xfailed, 1662 errors in 153.06s (0:02:33) ============ make[3]: *** [Makefile:1263: check-local] Error 1 make[3]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[2]: *** [Makefile:1141: check-am] Error 2 make[2]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make[1]: *** [Makefile:990: check-recursive] Error 1 make[1]: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test/t' make: *** [Makefile:303: check-recursive] Error 1 make: Leaving directory '/usr/src/RPM/BUILD/bash-completion-2.11/test' + : + exit 0 Processing files: bash-completion-2.11-alt1.git.157.g59d2322e Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.14605 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd bash-completion-2.11 + DOCDIR=/usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + export DOCDIR + rm -rf /usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + /bin/mkdir -p /usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + cp -prL AUTHORS CHANGES README.md doc/bash_completion.txt doc/main.txt doc/styleguide.txt doc/testing.txt /usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + chmod -R go-w /usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + chmod -R a+rX /usr/src/tmp/bash-completion-buildroot/usr/share/doc/bash-completion-2.11 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.fD4EBu find-provides: broken symbolic link /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/typeset -> declare is not going to provide anything find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) python.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/asciidoc.py: ASCII text (SKIP) python.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadcurses.py: ASCII text (SKIP) python.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadgui.py: ASCII text (SKIP) python.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadheadless.py: ASCII text (SKIP) python3.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/asciidoc.py: ASCII text (SKIP) python3.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadcurses.py: ASCII text (SKIP) python3.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadgui.py: ASCII text (SKIP) python3.prov.files: /usr/src/tmp/bash-completion-buildroot/usr/share/bash-completion/completions/btdownloadheadless.py: ASCII text (SKIP) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.mJDQvx find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) find-requires: FINDPACKAGE-COMMANDS: find rpm sort Provides: pkgconfig(bash-completion) = 2.11 Requires: bash >= 4.1, /bin/sh, coreutils, findutils, rpm, rpmlib(PosttransFiletriggers) warning: Installed (but unpackaged) file(s) found: /usr/share/cmake/bash-completion/bash-completion-config-version.cmake /usr/share/cmake/bash-completion/bash-completion-config.cmake Wrote: /usr/src/RPM/RPMS/noarch/bash-completion-2.11-alt1.git.157.g59d2322e.noarch.rpm (w2.lzdio) 157.16user 3.12system 2:45.05elapsed 97%CPU (0avgtext+0avgdata 70036maxresident)k 0inputs+0outputs (0major+549991minor)pagefaults 0swaps /.out/bash-completion-2.11-alt1.git.157.g59d2322e.noarch.rpm: license not found in '/usr/share/license' directory: GPL2 163.54user 6.52system 2:54.43elapsed 97%CPU (0avgtext+0avgdata 101076maxresident)k 0inputs+0outputs (0major+834596minor)pagefaults 0swaps