Created attachment 451852 [details] pytest-2.8.7:20161028-154347.log.gz With dev-python/pexpect-3.3 I get the error below, with dev-python/pexpect-4.01 the same test hangs indefinitely. ============================================================= FAILURES ============================================================= ___________________________________________________ TestPDB.test_pdb_interaction ___________________________________________________ self = <test_pdb.TestPDB object at 0x7fe6a2075748> testdir = <Testdir local('/var/tmp/portage/dev-python/pytest-2.8.7/temp/pytest-of-portage/pytest-45/testdir/test_pdb_interaction0')> def test_pdb_interaction(self, testdir): p1 = testdir.makepyfile(""" def test_1(): i = 0 assert i == 1 """) child = testdir.spawn_pytest("--pdb %s" % p1) > child.expect(".*def test_1") ../../../../../work/pytest-2.8.7/testing/test_pdb.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.5/site-packages/pexpect/__init__.py:1451: in expect timeout, searchwindowsize) /usr/lib64/python3.5/site-packages/pexpect/__init__.py:1466: in expect_list timeout, searchwindowsize) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <pexpect.spawn object at 0x7fe6a2075c88>, searcher = <pexpect.searcher_re object at 0x7fe6a2075be0>, timeout = 10.0 searchwindowsize = None def expect_loop(self, searcher, timeout=-1, searchwindowsize=-1): '''This is the common loop used inside expect. The 'searcher' should be an instance of searcher_re or searcher_string, which describes how and what to search for in the input. See expect() for other arguments, return value and exceptions. ''' self.searcher = searcher if timeout == -1: timeout = self.timeout if timeout is not None: end_time = time.time() + timeout if searchwindowsize == -1: searchwindowsize = self.searchwindowsize try: incoming = self.buffer freshlen = len(incoming) while True: # Keep reading until exception or return. index = searcher.search(incoming, freshlen, searchwindowsize) if index >= 0: self.buffer = incoming[searcher.end:] self.before = incoming[: searcher.start] self.after = incoming[searcher.start: searcher.end] self.match = searcher.match self.match_index = index return self.match_index # No match at this point if (timeout is not None) and (timeout < 0): raise TIMEOUT('Timeout exceeded in expect_any().') # Still have time left, so read more data c = self.read_nonblocking(self.maxread, timeout) freshlen = len(c) time.sleep(0.0001) incoming = incoming + c if timeout is not None: timeout = end_time - time.time() except EOF: err = sys.exc_info()[1] self.buffer = self.string_type() self.before = incoming self.after = EOF index = searcher.eof_index if index >= 0: self.match = EOF self.match_index = index return self.match_index else: self.match = None self.match_index = None raise EOF(str(err) + '\n' + str(self)) except TIMEOUT: err = sys.exc_info()[1] self.buffer = incoming self.before = incoming self.after = TIMEOUT index = searcher.timeout_index if index >= 0: self.match = TIMEOUT self.match_index = index return self.match_index else: self.match = None self.match_index = None > raise TIMEOUT(str(err) + '\n' + str(self)) E pexpect.TIMEOUT: Timeout exceeded. E <pexpect.spawn object at 0x7fe6a2075c88> E version: 3.3 E command: /usr/bin/python3.5 E args: ['/usr/bin/python3.5', '/var/tmp/portage/dev-python/pytest-2.8.7/work/pytest-2.8.7-python3_5/lib/pytest.py', '--basetemp=/var/tmp/portage/dev-python/pytest-2.8.7/temp/pytest-of-portage/pytest-45/testdir/test_pdb_interaction0/pexpect', '--pdb', '/var/tmp/portage/dev-python/pytest-2.8.7/temp/pytest-of-portage/pytest-45/testdir/test_pdb_interaction0/test_pdb_interaction.py'] E searcher: <pexpect.searcher_re object at 0x7fe6a2075be0> E buffer (last 100 chars): b'' E before (last 100 chars): b'' E after: <class 'pexpect.TIMEOUT'> E match: None E match_index: None E exitstatus: None E flag_eof: False E pid: 30548 E child_fd: 10 E closed: False E timeout: 10.0 E delimiter: <class 'pexpect.EOF'> E logfile: <_io.BufferedWriter name='/var/tmp/portage/dev-python/pytest-2.8.7/temp/pytest-of-portage/pytest-45/testdir/test_pdb_interaction0/spawn.out'> E logfile_read: None E logfile_send: None E maxread: 2000 E ignorecase: False E searchwindowsize: None E delaybeforesend: 0.05 E delayafterclose: 0.1 E delayafterterminate: 0.1 /usr/lib64/python3.5/site-packages/pexpect/__init__.py:1568: TIMEOUT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ================================== 1 failed, 658 passed, 15 skipped, 7 xfailed in 158.53 seconds =================================== * ERROR: dev-python/pytest-2.8.7::gentoo failed (test phase): * tests failed with python3.5 # emerge --info =dev-python/pytest-2.8.7 Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.22-r4, 4.7.10-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.7.10-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2 KiB Mem: 12273312 total, 9581648 free KiB Swap: 8351740 total, 8351740 free Timestamp of repository gentoo: Fri, 28 Oct 2016 07:15:01 +0000 sh dash 0.5.8.2 ld GNU gold (Gentoo 2.25.1 p1.1 2.25.1) 1.11 distcc 3.2rc1 x86_64-pc-linux-gnu [enabled] ccache version 3.2.4 [disabled] app-shells/bash: 4.3_p48::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo dev-util/ccache: 3.2.4::gentoo dev-util/cmake: 3.5.2-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.21.7::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=amdfam10 -msahf -mlzcnt -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -flto=5 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=amdfam10 -msahf -mlzcnt -mpopcnt --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512 -flto=5 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks ipc-sandbox merge-sync news parallel-fetch protect-owned sandbox sfperms split-elog split-log strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -flto=5 -fuse-linker-plugin -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -fgraphite-identity -ftree-vectorize" MAKEOPTS="-j12 -l4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="3dnow X a52 aac aalib acl acpi alsa amd64 ao audiofile bash-completion bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus dga djvu dri dts dvd dvdr emboss encode exif expat fbcon ffmpeg fftw flac fontconfig fortran ftp gd gdbm gif glamor gmp gnutls gpm graphviz gtk iconv icu idn ieee1394 imagemagick imlib inotify introspection ipv6 jbig jpeg jpeg2k kde lame lcms libass libcaca libnotify libsamplerate lm_sensors lua lzma lzo mad mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib musicbrainz ncurses nls nptl nsplugin offensive ogg openal openexr opengl openmp pam pango pcre pdf png policykit postscript ppds pulseaudio qt3support qt4 rdesktop readline samba sctp sdl seccomp session sndfile speex spell sqlite sse sse2 ssl startup-notification svg symlink syslog systemd taglib theora threads tiff truetype udev udisks unicode upower usb vaapi vcd vdpau vim-syntax vorbis wavpack wayland win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xpm xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="kodak ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it it_IT" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5 pypy pypy3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON ================================================================= Package Settings ================================================================= dev-python/pytest-2.8.7::gentoo was built with the following: USE="-doc -test" ABI_X86="64" PYTHON_TARGETS="pypy pypy3 python2_7 python3_5 -python3_4" # emerge -1pqv =dev-python/pytest-2.8.7 [ebuild R ] dev-python/pytest-2.8.7 USE="{test*} -doc" PYTHON_TARGETS="pypy pypy3 python2_7 python3_5 -python3_4"
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a461c82a13e1a2b88acd845122f1960a8d04491 commit 8a461c82a13e1a2b88acd845122f1960a8d04491 Author: Mike Gilbert <floppym@gentoo.org> Date: Sun May 28 13:29:12 2017 -0400 dev-python/pytest: disable test_pdb This test hangs/errors in an ebuild environment, but works fine outside of an ebuild. Bug: https://bugs.gentoo.org/598442 Package-Manager: Portage-2.3.6_p1, Repoman-2.3.2_p69 dev-python/pytest/pytest-3.0.3.ebuild | 3 +++ dev-python/pytest/pytest-3.0.6.ebuild | 3 +++ dev-python/pytest/pytest-3.0.7.ebuild | 4 ++++ 3 files changed, 10 insertions(+)
Old version removed. Please reopen if you can reproduce.