FailedOk

th/SRPMS[OK]
th/x32[OK]
th/i686[OK]
th/x86_64[OK]

ac/SRPMS[OK]
ac/i386[OK]
ac/i586[OK]
ac/i686[OK]
ac/alpha[OK]
ac/amd64[OK]
ac/athlon[OK]
ac/ppc[OK]
ac/sparc[OK]
ac/sparc64[OK]

Advanced Search
main()
Powered by PLD Linux
(c) 2002-2017 PLD Team
$Revision: 1.37 $
Powered by X.
Your IP: 54.198.244.0

python-pexpect dc74bafe-5137-4831-83ac-fe420d7c7293

Status:Failed
Source URL:ftp://buildlogs.pld-linux.org/th/x86_64/FAIL/python-pexpect,dc74bafe-5137-4831-83ac-fe420d7c7293.bz2
text/plain URL:View!
rpm -qa of builder:View!
Date:2017/03/12 10:46:15
Runtime:0:00:53.696273

Toc:

Content:

request from: qboosh
checking if we should skip the build
started at: Sun Mar 12 10:45:06 2017
fetching https://srcbuilder.pld-linux.org/th//srpms/dc74bafe-5137-4831-83ac-fe420d7c7293/python-pexpect-4.2.1-1.src.rpm
fetched 157316 bytes, 257.8 K/s
installing srpm: python-pexpect-4.2.1-1.src.rpm
mesg: ttyname failed: Inappropriate ioctl for device
+ install -d /tmp/B.jKaXr6/BUILD /tmp/B.jKaXr6/RPMS
+ LC_ALL=en_US.UTF-8
+ rpm -qp --changelog python-pexpect-4.2.1-1.src.rpm
* Sun Mar 12 2017 PLD Linux Team <feedback@pld-linux.org>
- For complete changelog see: http://git.pld-linux.org/?p=packages/python-pexpect.git;a=log;h=master
* Sun Mar 12 2017 Jakub Bogusz <qboosh@pld-linux.org> e0a16c9
- updated to 4.2.1 - added python3- and -apidocs packages + rpm -Uhv --nodeps --define '_topdir /tmp/B.jKaXr6' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' python-pexpect-4.2.1-1.src.rpm Preparing... ################################################## python-pexpect ################################################## + rm -f python-pexpect-4.2.1-1.src.rpm mesg: ttyname failed: Inappropriate ioctl for device + install -m 700 -d /tmp/B.jKaXr6/BUILD/tmp mesg: ttyname failed: Inappropriate ioctl for device + TMPDIR=/tmp/B.jKaXr6/BUILD/tmp + exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.jKaXr6' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux --define 'prep exit 0' /tmp/B.jKaXr6/python-pexpect.spec Building target platforms: x86_64-pld-linux checking BuildConflict-ing packages no BuildConflicts found checking BR rpm: error: Failed build dependencies: rpm: python-ptyprocess >= 0.5 is needed by python-pexpect-4.2.1-1.src rpm: python3-ptyprocess >= 0.5 is needed by python-pexpect-4.2.1-1.src rpm: Building target platforms: x86_64-pld-linux updating poldek cache... ready is up to date Retrieving th::packages.ndir.md... th is up to date Retrieving th::packages.ndir.md... th is up to date Retrieving th-ready::packages.ndir.md... th-ready is up to date Retrieving th-ready::packages.ndir.md... th-ready is up to date Retrieving th-test::packages.ndir.md... th-test is up to date Retrieving th-test::packages.ndir.md... th-test is up to date checking conflicting packages in BRed packages poldek: Loading [pndir]ready... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-test... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th-ready... poldek: Loading [pndir]th... poldek: Loading [pndir]th... poldek: 29603 packages read poldek: Removed 3069 duplicate packages from available set poldek: Processing dependencies... poldek: There are 2 packages to install: poldek: I python-ptyprocess-0.5.1-2.noarch python3-ptyprocess-0.5.1-2.noarch poldek: This operation will use 140.1KB of disk space. poldek: Need to get 43.9KB of archives. poldek: Executing pm-command.sh --upgrade -vh --test --root / --define _check_dirname_deps 1... poldek: Preparing... ################################################## no conflicts found checking BR rpm: error: Failed build dependencies: rpm: python-ptyprocess >= 0.5 is needed by python-pexpect-4.2.1-1.src rpm: python3-ptyprocess >= 0.5 is needed by python-pexpect-4.2.1-1.src rpm: Building target platforms: x86_64-pld-linux installing BR: python3\-ptyprocess python\-ptyprocess + poldek --noask --caplookup -Q -v --upgrade python3-ptyprocess python-ptyprocess Loading [pndir]ready... Loading [pndir]th-test... Loading [pndir]th-test... Loading [pndir]th-ready... Loading [pndir]th-ready... Loading [pndir]th... Loading [pndir]th... 29603 packages read Removed 3069 duplicate packages from available set Processing dependencies... There are 2 packages to install: I python-ptyprocess-0.5.1-2.noarch python3-ptyprocess-0.5.1-2.noarch This operation will use 140.1KB of disk space. Need to get 43.9KB of archives. Executing pm-command.sh --upgrade -vh --root / --define _check_dirname_deps 1... Preparing... ################################################## python3-ptyprocess ################################################## python-ptyprocess ################################################## building RPM using: set -ex; : build-id: dc74bafe-5137-4831-83ac-fe420d7c7293; TMPDIR=/tmp/B.jKaXr6/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j5' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.jKaXr6' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.jKaXr6/python-pexpect.spec mesg: ttyname failed: Inappropriate ioctl for device + : build-id: dc74bafe-5137-4831-83ac-fe420d7c7293 + TMPDIR=/tmp/B.jKaXr6/BUILD/tmp + exec nice -n 0 rpmbuild -bb --define '_smp_mflags -j5' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.jKaXr6' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.jKaXr6/python-pexpect.spec Building target platforms: x86_64-pld-linux Executing(%prep): /bin/sh -e /tmp/B.jKaXr6/BUILD/tmp/rpm-tmp.29293 + umask 022 + cd /tmp/B.jKaXr6/BUILD + cd /tmp/B.jKaXr6/BUILD + rm -rf pexpect-4.2.1 + /usr/bin/gzip -dc /tmp/B.jKaXr6/pexpect-4.2.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pexpect-4.2.1 + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/id -u + '[' 1000 '=' 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /tmp/B.jKaXr6/BUILD/tmp/rpm-tmp.29293 TMP=/home/users/builder/tmp HOME=/home/users/builder PATH=/home/users/builder/GNUstep/Tools:/usr/local/bin:/usr/bin:/bin:/home/users/builder/bin TMPDIR=/tmp/B.jKaXr6/BUILD/tmp + umask 022 + cd /tmp/B.jKaXr6/BUILD + cd pexpect-4.2.1 + LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc ' + export LDFLAGS + CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CFLAGS + CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 ' + export CXXFLAGS + CC=x86_64-pld-linux-gcc + export CC + CXX=x86_64-pld-linux-g++ + export CXX + /usr/bin/python2 setup.py build '--build-base=build-2' /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running build running build_py creating build-2 creating build-2/lib creating build-2/lib/pexpect copying pexpect/FSM.py -> build-2/lib/pexpect copying pexpect/popen_spawn.py -> build-2/lib/pexpect copying pexpect/fdpexpect.py -> build-2/lib/pexpect copying pexpect/__init__.py -> build-2/lib/pexpect copying pexpect/expect.py -> build-2/lib/pexpect copying pexpect/screen.py -> build-2/lib/pexpect copying pexpect/ANSI.py -> build-2/lib/pexpect copying pexpect/pxssh.py -> build-2/lib/pexpect copying pexpect/async.py -> build-2/lib/pexpect copying pexpect/exceptions.py -> build-2/lib/pexpect copying pexpect/utils.py -> build-2/lib/pexpect copying pexpect/pty_spawn.py -> build-2/lib/pexpect copying pexpect/run.py -> build-2/lib/pexpect copying pexpect/replwrap.py -> build-2/lib/pexpect copying pexpect/spawnbase.py -> build-2/lib/pexpect copying pexpect/bashrc.sh -> build-2/lib/pexpect + LC_ALL=C.UTF-8 /usr/bin/python2 -m pytest tests ============================= test session starts ============================== platform linux2 -- Python 2.7.13, pytest-2.9.2, py-1.4.32, pluggy-0.3.1 rootdir: /tmp/B.jKaXr6/BUILD/pexpect-4.2.1, inifile: setup.cfg plugins: timeout-1.0.0, hypothesis-3.1.0 collected 203 items tests/test_FSM.py . tests/test_ansi.py ......... tests/test_async.py sssss tests/test_command_list_split.py . tests/test_constructor.py FF tests/test_ctrl_chars.py FFFFF tests/test_delay.py FF tests/test_destructor.py F tests/test_dotall.py FF tests/test_env.py FFFF tests/test_expect.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF tests/test_filedescriptor.py ..... tests/test_interact.py FFF tests/test_isalive.py FFFFFFFFF tests/test_log.py FFFF tests/test_misc.py ..FFFFFFFFFFFFFF......FFFFF tests/test_missing_command.py . tests/test_performance.py F tests/test_pickling.py . tests/test_popen_spawn.py ......... tests/test_pxssh.py FFFF tests/test_replwrap.py FFFFFFFFF tests/test_repr.py .FF tests/test_run.py FFFFFFFFFFFFFFFFF tests/test_screen.py ........... tests/test_socket.py ........... tests/test_timeout_pattern.py FF.FF tests/test_unicode.py FFFFFFFFFFF tests/test_which.py ....... tests/test_winsize.py FFF =================================== FAILURES =================================== _____________________ TestCaseConstructor.test_constructor _____________________ self = <tests.test_constructor.TestCaseConstructor testMethod=test_constructor> def test_constructor (self): '''This tests that the constructor will work and give the same results for different styles of invoking __init__(). This assumes that the root directory / is static during the test. ''' > p1 = pexpect.spawn('uname -m -n -p -r -s -v') tests/test_constructor.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_constructor.TestCaseConstructor.test_constructor __________________ TestCaseConstructor.test_named_parameters ___________________ self = <tests.test_constructor.TestCaseConstructor testMethod=test_named_parameters> def test_named_parameters (self): '''This tests that named parameters work. ''' > p = pexpect.spawn ('/bin/ls',timeout=10) tests/test_constructor.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_constructor.TestCaseConstructor.test_named_parameters ___________________ TestCtrlChars.test_bad_sendcontrol_chars ___________________ self = <tests.test_ctrl_chars.TestCtrlChars testMethod=test_bad_sendcontrol_chars> def test_bad_sendcontrol_chars (self): '''This tests that sendcontrol will return 0 for an unknown char. ''' > child = pexpect.spawn('python getch.py', echo=False, timeout=5) tests/test_ctrl_chars.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_bad_sendcontrol_chars _______________________ TestCtrlChars.test_control_chars _______________________ self = <tests.test_ctrl_chars.TestCtrlChars testMethod=test_control_chars> def test_control_chars(self): '''This tests that we can send all 256 8-bit characters to a child process.''' > child = pexpect.spawn('python getch.py', echo=False, timeout=5) tests/test_ctrl_chars.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_control_chars ________________________ TestCtrlChars.test_sendcontrol ________________________ self = <tests.test_ctrl_chars.TestCtrlChars testMethod=test_sendcontrol> def test_sendcontrol(self): '''This tests that we can send all special control codes by name. ''' > child = pexpect.spawn('python getch.py', echo=False, timeout=5) tests/test_ctrl_chars.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendcontrol __________________________ TestCtrlChars.test_sendeof __________________________ self = <tests.test_ctrl_chars.TestCtrlChars testMethod=test_sendeof> def test_sendeof(self): > child = pexpect.spawn('python getch.py', echo=False, timeout=5) tests/test_ctrl_chars.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendeof _________________________ TestCtrlChars.test_sendintr __________________________ self = <tests.test_ctrl_chars.TestCtrlChars testMethod=test_sendintr> def test_sendintr (self): > child = pexpect.spawn('python getch.py', echo=False, timeout=5) tests/test_ctrl_chars.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_ctrl_chars.TestCtrlChars.test_sendintr ______________________ TestCaseDelay.test_delayafterread _______________________ self = <tests.test_delay.TestCaseDelay testMethod=test_delayafterread> def test_delayafterread(self): """ Test various values for delayafterread. """ > p = pexpect.spawn("cat") tests/test_delay.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_delay.TestCaseDelay.test_delayafterread ______________________ TestCaseDelay.test_delaybeforesend ______________________ self = <tests.test_delay.TestCaseDelay testMethod=test_delaybeforesend> def test_delaybeforesend(self): """ Test various values for delaybeforesend. """ > p = pexpect.spawn("cat") tests/test_delay.py:15: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_delay.TestCaseDelay.test_delaybeforesend ______________________ TestCaseDestructor.test_destructor ______________________ self = <tests.test_destructor.TestCaseDestructor testMethod=test_destructor> def test_destructor (self): if platform.python_implementation() != 'CPython': # Details of garbage collection are different on other implementations return 'SKIP' gc.collect() time.sleep(3) > p1 = pexpect.spawn('%s hello_world.py' % self.PYTHONBIN) tests/test_destructor.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_destructor.TestCaseDestructor.test_destructor __________________________ TestCaseDotall.test_dotall __________________________ self = <tests.test_dotall.TestCaseDotall testMethod=test_dotall> def test_dotall (self): > p = pexpect.spawn('echo "%s"' % testdata) tests/test_dotall.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_dotall.TestCaseDotall.test_dotall _______________________ TestCaseDotall.test_precompiled ________________________ self = <tests.test_dotall.TestCaseDotall testMethod=test_precompiled> def test_precompiled (self): > p = pexpect.spawn('echo "%s"' % testdata) tests/test_dotall.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_dotall.TestCaseDotall.test_precompiled ________________________ TestCaseEnv.test_run_uses_env _________________________ self = <tests.test_env.TestCaseEnv testMethod=test_run_uses_env> def test_run_uses_env(self): " pexpect.run uses env argument when running child process " script_name = 'run_uses_env.sh' environ = {'PEXPECT_TEST_KEY': 'pexpect test value'} with example_script(script_name, '$PEXPECT_TEST_KEY') as script_dir: script = os.path.join(script_dir, script_name) > out = pexpect.run(script, env=environ) tests/test_env.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env ______________________ TestCaseEnv.test_run_uses_env_path ______________________ self = <tests.test_env.TestCaseEnv testMethod=test_run_uses_env_path> def test_run_uses_env_path(self): " pexpect.run uses binary from PATH when given in env argument " script_name = 'run_uses_env_path.sh' with example_script(script_name) as script_dir: > out = pexpect.run(script_name, env={'PATH': script_dir}) tests/test_env.py:75: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env_path _________________ TestCaseEnv.test_run_uses_env_path_over_path _________________ self = <tests.test_env.TestCaseEnv testMethod=test_run_uses_env_path_over_path> def test_run_uses_env_path_over_path(self): " pexpect.run uses PATH from env over os.environ " script_name = 'run_uses_env_path_over_path.sh' with example_script(script_name, output='failure') as wrong_dir: with example_script(script_name) as right_dir: orig_path = os.environ['PATH'] os.environ['PATH'] = wrong_dir try: > out = pexpect.run(script_name, env={'PATH': right_dir}) tests/test_env.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_run_uses_env_path_over_path _______________________ TestCaseEnv.test_spawn_uses_env ________________________ self = <tests.test_env.TestCaseEnv testMethod=test_spawn_uses_env> def test_spawn_uses_env(self): " pexpect.spawn uses env argument when running child process " script_name = 'spawn_uses_env.sh' environ = {'PEXPECT_TEST_KEY': 'pexpect test value'} with example_script(script_name, '$PEXPECT_TEST_KEY') as script_dir: script = os.path.join(script_dir, script_name) > child = pexpect.spawn(script, env=environ) tests/test_env.py:65: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_env.TestCaseEnv.test_spawn_uses_env _________________________ ExpectTestCase.test_bad_arg __________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_bad_arg> def test_bad_arg(self): > p = pexpect.spawn('cat') tests/test_expect.py:511: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_bad_arg _______________________ ExpectTestCase.test_before_after _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_before_after> def test_before_after(self): '''This tests expect() for some simple before/after things. ''' > p = pexpect.spawn('%s -Wi list100.py' % self.PYTHONBIN, env=no_coverage_env()) tests/test_expect.py:423: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_after ____________________ ExpectTestCase.test_before_after_exact ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_before_after_exact> def test_before_after_exact(self): '''This tests some simple before/after things, for expect_exact(). (Grahn broke it at one point.) ''' > p = pexpect.spawn('%s -Wi list100.py' % self.PYTHONBIN, env=no_coverage_env()) tests/test_expect.py:430: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_before_after_exact __________________________ ExpectTestCase.test_expect __________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect> def test_expect (self): the_old_way = subprocess.Popen(args=['ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('ls -l /bin') tests/test_expect.py:343: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect _______________________ ExpectTestCase.test_expect_basic _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_basic> def test_expect_basic (self): > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_basic _______________________ ExpectTestCase.test_expect_echo ________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_echo> def test_expect_echo (self): '''This tests that echo is on by default. ''' > p = pexpect.spawn('cat', echo=True, timeout=5) tests/test_expect.py:242: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_echo ____________________ ExpectTestCase.test_expect_echo_exact _____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_echo_exact> def test_expect_echo_exact (self): '''Like test_expect_echo(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=True, timeout=5) tests/test_expect.py:248: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_echo_exact ________________________ ExpectTestCase.test_expect_eof ________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_eof> def test_expect_eof (self): the_old_way = subprocess.Popen(args=['/bin/ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('/bin/ls -l /bin') tests/test_expect.py:380: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_eof _______________________ ExpectTestCase.test_expect_exact _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_exact> def test_expect_exact (self): the_old_way = subprocess.Popen(args=['ls', '-l', '/bin'], stdout=subprocess.PIPE).communicate()[0].rstrip() > p = pexpect.spawn('ls -l /bin') tests/test_expect.py:360: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_exact ____________________ ExpectTestCase.test_expect_exact_basic ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_exact_basic> def test_expect_exact_basic (self): > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_exact_basic ____________________ ExpectTestCase.test_expect_ignore_case ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_ignore_case> def test_expect_ignore_case(self): '''This test that the ignorecase flag will match patterns even if case is different using the regex (?i) directive. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_ignore_case _________________ ExpectTestCase.test_expect_ignore_case_flag __________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_ignore_case_flag> def test_expect_ignore_case_flag(self): '''This test that the ignorecase flag will match patterns even if case is different using the ignorecase flag. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_ignore_case_flag _______________________ ExpectTestCase.test_expect_index _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_index> def test_expect_index (self): '''This tests that mixed list of regex strings, TIMEOUT, and EOF all return the correct index when matched. ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:312: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_index ____________________ ExpectTestCase.test_expect_index_exact ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_index_exact> def test_expect_index_exact (self): '''Like test_expect_index(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:318: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_index_exact _______________________ ExpectTestCase.test_expect_order _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_order> def test_expect_order (self): '''This tests that patterns are matched in the same order as given in the pattern_list. (Or does it? Doesn't it also pass if expect() always chooses (one of the) the leftmost matches in the input? -- grahn) ... agreed! -jquast, the buffer ptr isn't forwarded on match, see first two test cases ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:111: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_order ____________________ ExpectTestCase.test_expect_order_exact ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_order_exact> def test_expect_order_exact (self): '''Like test_expect_order(), but using expect_exact(). ''' > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:117: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_order_exact ____________________ ExpectTestCase.test_expect_setecho_off ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_setecho_off> def test_expect_setecho_off(self): '''This tests that echo may be toggled off. ''' > p = pexpect.spawn('cat', echo=True, timeout=5) tests/test_expect.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_setecho_off _________________ ExpectTestCase.test_expect_setecho_off_exact _________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_setecho_off_exact> def test_expect_setecho_off_exact(self): > p = pexpect.spawn('cat', echo=True, timeout=5) tests/test_expect.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_setecho_off_exact ______________________ ExpectTestCase.test_expect_timeout ______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_expect_timeout> def test_expect_timeout (self): > p = pexpect.spawn('cat', timeout=5) tests/test_expect.py:390: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_expect_timeout __________________________ ExpectTestCase.test_greed ___________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_greed> def test_greed(self): > p = pexpect.spawn(self.PYTHONBIN + ' list100.py') tests/test_expect.py:497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_greed _______________________ ExpectTestCase.test_greed_exact ________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_greed_exact> def test_greed_exact(self): > p = pexpect.spawn(self.PYTHONBIN + ' list100.py') tests/test_expect.py:504: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_greed_exact _________________________ ExpectTestCase.test_ordering _________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_ordering> def test_ordering(self): '''This tests expect() for which pattern is returned when many may eventually match. I (Grahn) am a bit confused about what should happen, but this test passes with pexpect 2.1. ''' > p = pexpect.spawn(self.PYTHONBIN) tests/test_expect.py:464: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_ordering ______________________ ExpectTestCase.test_ordering_exact ______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_ordering_exact> def test_ordering_exact(self): '''This tests expect_exact() for which pattern is returned when many may eventually match. I (Grahn) am a bit confused about what should happen, but this test passes for the expect() method with pexpect 2.1. ''' > p = pexpect.spawn(self.PYTHONBIN) tests/test_expect.py:473: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_ordering_exact _____________________ ExpectTestCase.test_signal_handling ______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_signal_handling> def test_signal_handling(self): ''' This tests the error handling of a signal interrupt (usually a SIGWINCH generated when a window is resized), but in this test, we are substituting an ALARM signal as this is much easier for testing and is treated the same as a SIGWINCH. To ensure that the alarm fires during the expect call, we are setting the signal to alarm after 1 second while the spawned process sleeps for 2 seconds prior to sending the expected output. ''' def noop(x, y): pass signal.signal(signal.SIGALRM, noop) > p1 = pexpect.spawn('%s sleep_for.py 2' % self.PYTHONBIN, timeout=5) tests/test_expect.py:542: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_signal_handling _______________________ ExpectTestCase.test_stdin_closed _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_stdin_closed> def test_stdin_closed(self): ''' Ensure pexpect continues to operate even when stdin is closed ''' class Closed_stdin_proc(multiprocessing.Process): def run(self): sys.__stdin__.close() cat = pexpect.spawn('cat') cat.sendeof() cat.expect(pexpect.EOF) proc = Closed_stdin_proc() proc.start() proc.join() > assert proc.exitcode == 0 E AssertionError: assert 1 == 0 E + where 1 = <Closed_stdin_proc(Closed_stdin_proc-1, stopped[1])>.exitcode tests/test_expect.py:561: AssertionError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_stdin_closed ----------------------------- Captured stderr call ----------------------------- Process Closed_stdin_proc-1: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/tests/test_expect.py", line 554, in run cat = pexpect.spawn('cat') File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 197, in __init__ self._spawn(command, args, preexec_fn, dimensions) File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 297, in _spawn cwd=self.cwd, **kwargs) File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 308, in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) File "/usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py", line 220, in spawn File "/usr/lib64/python2.7/pty.py", line 107, in fork master_fd, slave_fd = openpty() File "/usr/lib64/python2.7/pty.py", line 29, in openpty master_fd, slave_name = _open_terminal() File "/usr/lib64/python2.7/pty.py", line 70, in _open_terminal raise os.error, 'out of pty devices' OSError: out of pty devices ___________________ ExpectTestCase.test_stdin_stdout_closed ____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_stdin_stdout_closed> def test_stdin_stdout_closed(self): ''' Ensure pexpect continues to operate even when stdin and stdout is closed ''' class Closed_stdin_stdout_proc(multiprocessing.Process): def run(self): sys.__stdin__.close() sys.__stdout__.close() cat = pexpect.spawn('cat') cat.sendeof() cat.expect(pexpect.EOF) proc = Closed_stdin_stdout_proc() proc.start() proc.join() > assert proc.exitcode == 0 E AssertionError: assert 1 == 0 E + where 1 = <Closed_stdin_stdout_proc(Closed_stdin_stdout_proc-2, stopped[1])>.exitcode tests/test_expect.py:578: AssertionError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_stdin_stdout_closed ----------------------------- Captured stderr call ----------------------------- Process Closed_stdin_stdout_proc-2: Traceback (most recent call last): File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/tests/test_expect.py", line 571, in run cat = pexpect.spawn('cat') File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 197, in __init__ self._spawn(command, args, preexec_fn, dimensions) File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 297, in _spawn cwd=self.cwd, **kwargs) File "/tmp/B.jKaXr6/BUILD/pexpect-4.2.1/pexpect/pty_spawn.py", line 308, in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) File "/usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py", line 220, in spawn File "/usr/lib64/python2.7/pty.py", line 107, in fork master_fd, slave_fd = openpty() File "/usr/lib64/python2.7/pty.py", line 29, in openpty master_fd, slave_name = _open_terminal() File "/usr/lib64/python2.7/pty.py", line 70, in _open_terminal raise os.error, 'out of pty devices' OSError: out of pty devices _______________________ ExpectTestCase.test_timeout_none _______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_timeout_none> def test_timeout_none(self): > p = pexpect.spawn('echo abcdef', timeout=None) tests/test_expect.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_timeout_none ______________________ ExpectTestCase.test_unexpected_eof ______________________ self = <tests.test_expect.ExpectTestCase testMethod=test_unexpected_eof> def test_unexpected_eof (self): > p = pexpect.spawn('ls -l /bin') tests/test_expect.py:395: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_unexpected_eof ________________________ ExpectTestCase.test_waitnoecho ________________________ self = <tests.test_expect.ExpectTestCase testMethod=test_waitnoecho> def test_waitnoecho(self): " Tests setecho(False) followed by waitnoecho() " > p = pexpect.spawn('cat', echo=False, timeout=5) tests/test_expect.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_waitnoecho _____________________ ExpectTestCase.test_waitnoecho_order _____________________ self = <tests.test_expect.ExpectTestCase testMethod=test_waitnoecho_order> def test_waitnoecho_order(self): ''' This tests that we can wait on a child process to set echo mode. For example, this tests that we could wait for SSH to set ECHO False when asking of a password. This makes use of an external script echo_wait.py. ''' > p1 = pexpect.spawn('%s echo_wait.py' % self.PYTHONBIN) tests/test_expect.py:209: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_expect.ExpectTestCase.test_waitnoecho_order ____________________ InteractTestCase.test_interact_escape _____________________ self = <tests.test_interact.InteractTestCase testMethod=test_interact_escape> def test_interact_escape(self): " Ensure `escape_character' value exits interactive mode. " > p = pexpect.spawn(self.interact_py, timeout=5, env=self.env) tests/test_interact.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_escape __________________ InteractTestCase.test_interact_escape_None __________________ self = <tests.test_interact.InteractTestCase testMethod=test_interact_escape_None> def test_interact_escape_None(self): " Return only after Termination when `escape_character=None'. " p = pexpect.spawn('{self.interact_py} --no-escape'.format(self=self), > timeout=5, env=self.env) tests/test_interact.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_escape_None _________________ InteractTestCase.test_interact_exit_unicode __________________ self = <tests.test_interact.InteractTestCase testMethod=test_interact_exit_unicode> def test_interact_exit_unicode(self): " Ensure subprocess receives utf8. " p = pexpect.spawnu('{self.interact_py} --utf8'.format(self=self), > timeout=5, env=self.env) tests/test_interact.py:78: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_interact.InteractTestCase.test_interact_exit_unicode ________ IsAliveTestCase.test_expect_isalive_consistent_multiple_calls _________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_isalive_consistent_multiple_calls> def test_expect_isalive_consistent_multiple_calls (self): '''This tests that multiple calls to isalive() return same value. ''' > p = pexpect.spawn('cat') tests/test_isalive.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_consistent_multiple_calls ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGHUP _____________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_isalive_dead_after_SIGHUP> def test_expect_isalive_dead_after_SIGHUP(self): > p = pexpect.spawn('cat', timeout=5, ignore_sighup=False) tests/test_isalive.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGHUP ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGINT _____________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_isalive_dead_after_SIGINT> def test_expect_isalive_dead_after_SIGINT(self): > p = pexpect.spawn('cat', timeout=5) tests/test_isalive.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGINT ____________ IsAliveTestCase.test_expect_isalive_dead_after_SIGKILL ____________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_isalive_dead_after_SIGKILL> def test_expect_isalive_dead_after_SIGKILL(self): > p = pexpect.spawn('cat', timeout=5) tests/test_isalive.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_SIGKILL ______ IsAliveTestCase.test_expect_isalive_dead_after_normal_termination _______ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_isalive_dead_after_normal_termination> def test_expect_isalive_dead_after_normal_termination (self): > p = pexpect.spawn('ls', timeout=15) tests/test_isalive.py:66: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_isalive_dead_after_normal_termination _______________________ IsAliveTestCase.test_expect_wait _______________________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_wait> def test_expect_wait(self): """Ensure consistency in wait() and isalive().""" > p = pexpect.spawn('sleep 1') tests/test_isalive.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_wait ______________ IsAliveTestCase.test_expect_wait_after_termination ______________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_expect_wait_after_termination> def test_expect_wait_after_termination(self): """Ensure wait on a process terminated by kill -9.""" > p = pexpect.spawn('sleep 3') tests/test_isalive.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_expect_wait_after_termination ____________________ IsAliveTestCase.test_forced_terminate _____________________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_forced_terminate> def test_forced_terminate(self): > p = pexpect.spawn(sys.executable, ['needs_kill.py']) tests/test_isalive.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_forced_terminate _______________________ IsAliveTestCase.test_signal_wait _______________________ self = <tests.test_isalive.IsAliveTestCase testMethod=test_signal_wait> def test_signal_wait(self): '''Test calling wait with a process terminated by a signal.''' if not hasattr(signal, 'SIGALRM'): return 'SKIP' > p = pexpect.spawn(sys.executable, ['alarm_die.py']) tests/test_isalive.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_isalive.IsAliveTestCase.test_signal_wait _____________________________ TestCaseLog.test_log _____________________________ self = <tests.test_log.TestCaseLog testMethod=test_log> def test_log (self): log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('echo', [log_message]) tests/test_log.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log ______________________ TestCaseLog.test_log_logfile_read _______________________ self = <tests.test_log.TestCaseLog testMethod=test_log_logfile_read> def test_log_logfile_read (self): log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('cat') tests/test_log.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_logfile_read ______________________ TestCaseLog.test_log_logfile_send _______________________ self = <tests.test_log.TestCaseLog testMethod=test_log_logfile_send> def test_log_logfile_send (self): log_message = b'This is a test.' filename = tempfile.mktemp() mylog = open (filename, 'wb') > p = pexpect.spawn('cat') tests/test_log.py:67: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_logfile_send ____________________ TestCaseLog.test_log_send_and_received ____________________ self = <tests.test_log.TestCaseLog testMethod=test_log_send_and_received> def test_log_send_and_received (self): '''The logfile should have the test message three time -- once for the data we sent. Once for the data that cat echos back as characters are typed. And once for the data that cat prints after we send a linefeed (sent by sendline). ''' log_message = 'This is a test.' filename = tempfile.mktemp() mylog = open(filename, 'wb') > p = pexpect.spawn('cat') tests/test_log.py:90: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_log.TestCaseLog.test_log_send_and_received _______________________ TestCaseMisc.test_bad_child_pid ________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_bad_child_pid> def test_bad_child_pid(self): " assert bad condition error in isalive(). " expect_errmsg = re.escape("isalive() encountered condition where ") > child = pexpect.spawn('cat') tests/test_misc.py:184: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_bad_child_pid _____________________ TestCaseMisc.test_bad_type_in_expect _____________________ self = <tests.test_misc.TestCaseMisc testMethod=test_bad_type_in_expect> def test_bad_type_in_expect(self): " expect() does not accept dictionary arguments. " > child = pexpect.spawn('cat') tests/test_misc.py:246: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_bad_type_in_expect ____________________________ TestCaseMisc.test_cwd _____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_cwd> def test_cwd(self): " check keyword argument `cwd=' of pexpect.run() " tmp_dir = os.path.realpath(tempfile.gettempdir()) > default = pexpect.run('pwd') tests/test_misc.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_cwd ____________________________ TestCaseMisc.test_eof _____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_eof> def test_eof(self): " call to expect() after EOF is received raises pexpect.EOF " > child = pexpect.spawn('cat') tests/test_misc.py:139: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_eof ________________________ TestCaseMisc.test_exception_tb ________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_exception_tb> def test_exception_tb(self): " test get_trace() filters away pexpect/__init__.py calls. " > p = pexpect.spawn('sleep 1') tests/test_misc.py:330: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_exception_tb __________________________ TestCaseMisc.test_isalive ___________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_isalive> def test_isalive(self): " check isalive() before and after EOF. (True, False) " > child = pexpect.spawn('cat') tests/test_misc.py:238: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_isalive ___________________________ TestCaseMisc.test_isatty ___________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_isatty> def test_isatty(self): " Test isatty() is True after spawning process on most platforms. " > child = pexpect.spawn('cat') tests/test_misc.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_isatty ____________________________ TestCaseMisc.test_iter ____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_iter> def test_iter(self): " iterating over lines of spawn.__iter__(). " > child = pexpect.spawn('cat', echo=False) tests/test_misc.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_iter _____________________ TestCaseMisc.test_nonnative_pty_fork _____________________ self = <tests.test_misc.TestCaseMisc testMethod=test_nonnative_pty_fork> def test_nonnative_pty_fork(self): " test forced self.__fork_pty() and __pty_make_controlling_tty " # given, class spawn_ourptyfork(pexpect.spawn): def _spawn(self, command, args=[], preexec_fn=None, dimensions=None): self.use_native_pty_fork = False pexpect.spawn._spawn(self, command, args, preexec_fn, dimensions) # exercise, > p = spawn_ourptyfork('cat', echo=False) tests/test_misc.py:320: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) tests/test_misc.py:317: in _spawn dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_nonnative_pty_fork ____________________________ TestCaseMisc.test_read ____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_read> def test_read(self): " Test spawn.read by calls of various size. " > child = pexpect.spawn('cat') tests/test_misc.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read ____________ TestCaseMisc.test_read_after_close_raises_value_error _____________ self = <tests.test_misc.TestCaseMisc testMethod=test_read_after_close_raises_value_error> def test_read_after_close_raises_value_error(self): " Calling read_nonblocking after close raises ValueError. " # as read_nonblocking underlies all other calls to read, # ValueError should be thrown for all forms of read. with self.assertRaises(ValueError): > p = pexpect.spawn('cat') tests/test_misc.py:217: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_read_after_close_raises_value_error __________________________ TestCaseMisc.test_readline __________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_readline> def test_readline(self): " Test spawn.readline(). " # when argument 0 is sent, nothing is returned. # Otherwise the argument value is meaningless. > child = pexpect.spawn('cat', echo=False) tests/test_misc.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readline _____________________ TestCaseMisc.test_readline_bin_echo ______________________ self = <tests.test_misc.TestCaseMisc testMethod=test_readline_bin_echo> def test_readline_bin_echo(self): " Test spawn('echo'). " # given, > child = pexpect.spawn('echo', ['alpha', 'beta']) tests/test_misc.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readline_bin_echo _________________________ TestCaseMisc.test_readlines __________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_readlines> def test_readlines(self): " reading all lines of spawn.readlines(). " > child = pexpect.spawn('cat', echo=False) tests/test_misc.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_readlines ___________________________ TestCaseMisc.test_sighup ___________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_sighup> def test_sighup(self): " validate argument `ignore_sighup=True` and `ignore_sighup=False`. " getch = sys.executable + ' getch.py' > child = pexpect.spawn(getch, ignore_sighup=True) tests/test_misc.py:163: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_sighup _________________________ TestCaseMisc.test_terminate __________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_terminate> def test_terminate(self): " test force terminate always succeeds (SIGKILL). " > child = pexpect.spawn('cat') tests/test_misc.py:156: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_terminate ____________________________ TestCaseMisc.test_with ____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_with> def test_with(self): "spawn can be used as a context manager" > with pexpect.spawn(sys.executable + ' echo_w_prompt.py') as p: tests/test_misc.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_with ___________________________ TestCaseMisc.test_write ____________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_write> def test_write(self): " write a character and return it in return. " > child = pexpect.spawn('cat', echo=False) tests/test_misc.py:122: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_write _________________________ TestCaseMisc.test_writelines _________________________ self = <tests.test_misc.TestCaseMisc testMethod=test_writelines> def test_writelines(self): " spawn.writelines() " > child = pexpect.spawn('cat') tests/test_misc.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_misc.TestCaseMisc.test_writelines _______________________ PerformanceTestCase.test_100000 ________________________ self = <tests.test_performance.PerformanceTestCase testMethod=test_100000> def test_100000(self): if platform.python_implementation() == 'PyPy': raise unittest.SkipTest("This test fails on PyPy because of REPL differences") print() start_time = time.time() > self.plain_range (100000) tests/test_performance.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_performance.py:47: in plain_range e = pexpect.spawn('python', timeout=100) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_performance.PerformanceTestCase.test_100000 ____________________ PxsshTestCase.test_connection_refused _____________________ self = <tests.test_pxssh.PxsshTestCase testMethod=test_connection_refused> def test_connection_refused(self): ssh = pxssh.pxssh() try: > ssh.login('noserver', 'me', password='s3cret') tests/test_pxssh.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pxssh.py:279: in login spawn._spawn(self, cmd) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________ PxsshTestCase.test_failed_set_unique_prompt __________________ self = <tests.test_pxssh.PxsshTestCase testMethod=test_failed_set_unique_prompt> def test_failed_set_unique_prompt(self): ssh = pxssh.pxssh() ssh.set_unique_prompt = lambda: False try: ssh.login('server', 'me', password='s3cret', > auto_prompt_reset=True) tests/test_pxssh.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pxssh.py:279: in login spawn._spawn(self, cmd) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________________ PxsshTestCase.test_fake_ssh __________________________ self = <tests.test_pxssh.PxsshTestCase testMethod=test_fake_ssh> def test_fake_ssh(self): ssh = pxssh.pxssh() #ssh.logfile_read = sys.stdout # DEBUG > ssh.login('server', 'me', password='s3cret') tests/test_pxssh.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pxssh.py:279: in login spawn._spawn(self, cmd) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________________ PxsshTestCase.test_wrong_pw __________________________ self = <tests.test_pxssh.PxsshTestCase testMethod=test_wrong_pw> def test_wrong_pw(self): ssh = pxssh.pxssh() try: > ssh.login('server', 'me', password='wr0ng') tests/test_pxssh.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pxssh.py:279: in login spawn._spawn(self, cmd) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError __________________________ REPLWrapTestCase.test_bash __________________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_bash> def test_bash(self): > bash = replwrap.bash() tests/test_replwrap.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ________________________ REPLWrapTestCase.test_bash_env ________________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_bash_env> def test_bash_env(self): """env, which displays PS1=..., should not mess up finding the prompt. """ > bash = replwrap.bash() tests/test_replwrap.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _____________________ REPLWrapTestCase.test_existing_spawn _____________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_existing_spawn> def test_existing_spawn(self): > child = pexpect.spawn("bash", timeout=5, echo=False, encoding='utf-8') tests/test_replwrap.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _______________ REPLWrapTestCase.test_long_running_continuation ________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_long_running_continuation> def test_long_running_continuation(self): " also ensure timeout when used within continuation prompts. " > bash = replwrap.bash() tests/test_replwrap.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________ REPLWrapTestCase.test_long_running_multiline _________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_long_running_multiline> def test_long_running_multiline(self): " ensure the default timeout is used for multi-line commands. " > bash = replwrap.bash() tests/test_replwrap.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _______________________ REPLWrapTestCase.test_multiline ________________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_multiline> def test_multiline(self): > bash = replwrap.bash() tests/test_replwrap.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ____________________ REPLWrapTestCase.test_no_change_prompt ____________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_no_change_prompt> def test_no_change_prompt(self): if platform.python_implementation() == 'PyPy': raise unittest.SkipTest(skip_pypy) > child = pexpect.spawn('python', echo=False, timeout=5, encoding='utf-8') tests/test_replwrap.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ______________________ REPLWrapTestCase.test_pager_as_cat ______________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_pager_as_cat> def test_pager_as_cat(self): " PAGER is set to cat, to prevent timeout in ``man sleep``. " > bash = replwrap.bash() tests/test_replwrap.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:111: in bash encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________________ REPLWrapTestCase.test_python _________________________ self = <tests.test_replwrap.REPLWrapTestCase testMethod=test_python> def test_python(self): if platform.python_implementation() == 'PyPy': raise unittest.SkipTest(skip_pypy) > p = replwrap.python() tests/test_replwrap.py:93: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/replwrap.py:105: in python return REPLWrapper(command, u">>> ", u"import sys; sys.ps1={0!r}; sys.ps2={1!r}") pexpect/replwrap.py:38: in __init__ self.child = pexpect.spawn(cmd_or_spawn, echo=False, encoding='utf-8') pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError _________________________ TestCaseMisc.test_str_spawn __________________________ self = <tests.test_repr.TestCaseMisc testMethod=test_str_spawn> def test_str_spawn(self): """ Exercise spawn.__str__() """ # given, > p = pexpect.spawn('cat') tests/test_repr.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_repr.TestCaseMisc.test_str_spawn _________________________ TestCaseMisc.test_str_spawnu _________________________ self = <tests.test_repr.TestCaseMisc testMethod=test_str_spawnu> def test_str_spawnu(self): """ Exercise spawnu.__str__() """ # given, > p = pexpect.spawnu('cat') tests/test_repr.py:12: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_repr.TestCaseMisc.test_str_spawnu ___________________________ RunFuncTestCase.test_run ___________________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run> def test_run(self): the_old_way = subprocess.Popen( args=['uname', '-m', '-n'], stdout=subprocess.PIPE ).communicate()[0].rstrip() (the_new_way, exitstatus) = self.runfunc( > 'uname -m -n', withexitstatus=1) tests/test_run.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run ___________________ RunFuncTestCase.test_run_bad_exitstatus ____________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_bad_exitstatus> def test_run_bad_exitstatus(self): (the_new_way, exitstatus) = self.runfunc( > 'ls -l /najoeufhdnzkxjd', withexitstatus=1) tests/test_run.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_bad_exitstatus ______________________ RunFuncTestCase.test_run_callback _______________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_callback> def test_run_callback(self): # TODO it seems like this test could block forever if run fails... events = {pexpect.TIMEOUT: timeout_callback} > self.runfunc("cat", timeout=1, events=events) tests/test_run.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_callback __________________ RunFuncTestCase.test_run_event_as_function __________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_event_as_function> def test_run_event_as_function(self): events = [ ('GO:', function_events_callback) ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_function ___________________ RunFuncTestCase.test_run_event_as_method ___________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_event_as_method> def test_run_event_as_method(self): events = [ ('GO:', self._method_events_callback) ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_method ___________________ RunFuncTestCase.test_run_event_as_string ___________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_event_as_string> def test_run_event_as_string(self): events = [ # second match on 'abc', echo 'def' ('abc\r\n.*GO:', 'echo "def"\n'), # final match on 'def': exit ('def\r\n.*GO:', 'exit\n'), # first match on 'GO:' prompt, echo 'abc' ('GO:', 'echo "abc"\n') ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_as_string ___________________ RunFuncTestCase.test_run_event_typeerror ___________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_event_typeerror> def test_run_event_typeerror(self): events = [('GO:', -1)] with self.assertRaises(TypeError): pexpect.run('bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_event_typeerror ________________________ RunFuncTestCase.test_run_exit _________________________ self = <tests.test_run.RunFuncTestCase testMethod=test_run_exit> def test_run_exit(self): > (data, exitstatus) = self.runfunc('python exit1.py', withexitstatus=1) tests/test_run.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunFuncTestCase.test_run_exit _______________________ RunUnicodeFuncTestCase.test_run ________________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run> def test_run(self): the_old_way = subprocess.Popen( args=['uname', '-m', '-n'], stdout=subprocess.PIPE ).communicate()[0].rstrip() (the_new_way, exitstatus) = self.runfunc( > 'uname -m -n', withexitstatus=1) tests/test_run.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:157: in runu env=env, **kwargs) pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run ________________ RunUnicodeFuncTestCase.test_run_bad_exitstatus ________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_bad_exitstatus> def test_run_bad_exitstatus(self): (the_new_way, exitstatus) = self.runfunc( > 'ls -l /najoeufhdnzkxjd', withexitstatus=1) tests/test_run.py:95: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:157: in runu env=env, **kwargs) pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_bad_exitstatus ___________________ RunUnicodeFuncTestCase.test_run_callback ___________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_callback> def test_run_callback(self): # TODO it seems like this test could block forever if run fails... events = {pexpect.TIMEOUT: timeout_callback} > self.runfunc("cat", timeout=1, events=events) tests/test_run.py:91: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:157: in runu env=env, **kwargs) pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_callback ______________ RunUnicodeFuncTestCase.test_run_event_as_function _______________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_event_as_function> def test_run_event_as_function(self): events = [ ('GO:', function_events_callback) ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_function _______________ RunUnicodeFuncTestCase.test_run_event_as_method ________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_event_as_method> def test_run_event_as_method(self): events = [ ('GO:', self._method_events_callback) ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:136: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_method _______________ RunUnicodeFuncTestCase.test_run_event_as_string ________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_event_as_string> def test_run_event_as_string(self): events = [ # second match on 'abc', echo 'def' ('abc\r\n.*GO:', 'echo "def"\n'), # final match on 'def': exit ('def\r\n.*GO:', 'exit\n'), # first match on 'GO:' prompt, echo 'abc' ('GO:', 'echo "abc"\n') ] (data, exitstatus) = pexpect.run( 'bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_as_string _______________ RunUnicodeFuncTestCase.test_run_event_typeerror ________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_event_typeerror> def test_run_event_typeerror(self): events = [('GO:', -1)] with self.assertRaises(TypeError): pexpect.run('bash --rcfile {0}'.format(self.rcfile), withexitstatus=True, events=events, > timeout=10) tests/test_run.py:145: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_event_typeerror _____________________ RunUnicodeFuncTestCase.test_run_exit _____________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_exit> def test_run_exit(self): > (data, exitstatus) = self.runfunc('python exit1.py', withexitstatus=1) tests/test_run.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:157: in runu env=env, **kwargs) pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_exit ___________________ RunUnicodeFuncTestCase.test_run_unicode ____________________ self = <tests.test_run.RunUnicodeFuncTestCase testMethod=test_run_unicode> def test_run_unicode(self): if pexpect.PY3: char = chr(254) # þ pattern = '<in >' else: char = unichr(254) # analysis:ignore pattern = '<in >'.decode('ascii') def callback(values): if values['event_count'] == 0: return char + '\n' else: return True # Stop the child process output = pexpect.runu(sys.executable + ' echo_w_prompt.py', env={'PYTHONIOENCODING': 'utf-8'}, > events={pattern: callback}) tests/test_run.py:186: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/run.py:157: in runu env=env, **kwargs) pexpect/run.py:100: in run cwd=cwd, env=env, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_run.RunUnicodeFuncTestCase.test_run_unicode __________________ Exp_TimeoutTestCase.test_correctStackTrace __________________ self = <tests.test_timeout_pattern.Exp_TimeoutTestCase testMethod=test_correctStackTrace> def test_correctStackTrace (self): '''Verify that the stack trace returned with a TIMEOUT instance correctly handles function calls.''' def nestedFunction (spawnInstance): spawnInstance.expect("junk", timeout=3) try: > p = pexpect.spawn('cat') tests/test_timeout_pattern.py:79: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_correctStackTrace ________________ Exp_TimeoutTestCase.test_exp_timeout_notThrown ________________ self = <tests.test_timeout_pattern.Exp_TimeoutTestCase testMethod=test_exp_timeout_notThrown> def test_exp_timeout_notThrown (self): '''Verify that a TIMEOUT is not thrown when we match what we expect.''' try: > p = pexpect.spawn('cat') tests/test_timeout_pattern.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_exp_timeout_notThrown __________________ Exp_TimeoutTestCase.test_pattern_printout ___________________ self = <tests.test_timeout_pattern.Exp_TimeoutTestCase testMethod=test_pattern_printout> def test_pattern_printout (self): '''Verify that a TIMEOUT returns the proper patterns it is trying to match against. Make sure it is returning the pattern from the correct call.''' try: > p = pexpect.spawn('cat') tests/test_timeout_pattern.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_pattern_printout __________________ Exp_TimeoutTestCase.test_stacktraceMunging __________________ self = <tests.test_timeout_pattern.Exp_TimeoutTestCase testMethod=test_stacktraceMunging> def test_stacktraceMunging (self): '''Verify that the stack trace returned with a TIMEOUT instance does not contain references to pexpect.''' try: > p = pexpect.spawn('cat') tests/test_timeout_pattern.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_timeout_pattern.Exp_TimeoutTestCase.test_stacktraceMunging ________________________ UnicodeTests.test_expect_basic ________________________ self = <tests.test_unicode.UnicodeTests testMethod=test_expect_basic> def test_expect_basic (self): > p = pexpect.spawnu('cat') tests/test_unicode.py:18: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_basic _____________________ UnicodeTests.test_expect_echo_exact ______________________ self = <tests.test_unicode.UnicodeTests testMethod=test_expect_echo_exact> def test_expect_echo_exact (self): '''Like test_expect_echo(), but using expect_exact(). ''' > p = pexpect.spawnu('cat', timeout=5) tests/test_unicode.py:56: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_echo_exact _____________________ UnicodeTests.test_expect_exact_basic _____________________ self = <tests.test_unicode.UnicodeTests testMethod=test_expect_exact_basic> def test_expect_exact_basic (self): > p = pexpect.spawnu('cat') tests/test_unicode.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_exact_basic ___________________ UnicodeTests.test_expect_setecho_toggle ____________________ self = <tests.test_unicode.UnicodeTests testMethod=test_expect_setecho_toggle> def test_expect_setecho_toggle(self): '''This tests that echo may be toggled off. ''' > p = pexpect.spawnu('cat', timeout=5) tests/test_unicode.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_setecho_toggle ________________ UnicodeTests.test_expect_setecho_toggle_exact _________________ self = <tests.test_unicode.UnicodeTests testMethod=test_expect_setecho_toggle_exact> def test_expect_setecho_toggle_exact(self): > p = pexpect.spawnu('cat', timeout=5) tests/test_unicode.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_expect_setecho_toggle_exact ________________________ UnicodeTests.test_log_unicode _________________________ self = <tests.test_unicode.UnicodeTests testMethod=test_log_unicode> def test_log_unicode(self): msg = "abcΩ÷" filename_send = tempfile.mktemp() filename_read = tempfile.mktemp() > p = pexpect.spawnu('cat') tests/test_unicode.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_log_unicode _____________________ UnicodeTests.test_readline_bin_echo ______________________ self = <tests.test_unicode.UnicodeTests testMethod=test_readline_bin_echo> def test_readline_bin_echo(self): # Test using readline() with spawnu objects. pexpect 3.2 had threw # a TypeError when concatenating a bytestring to a unicode type. # given, > child = pexpect.spawnu('echo', ['input', ]) tests/test_unicode.py:171: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_readline_bin_echo _________________ UnicodeTests.test_spawn_expect_ascii_unicode _________________ self = <tests.test_unicode.UnicodeTests testMethod=test_spawn_expect_ascii_unicode> def test_spawn_expect_ascii_unicode(self): # A bytes-based spawn should be able to handle ASCII-only unicode, for # backwards compatibility. > p = pexpect.spawn('cat') tests/test_unicode.py:137: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_expect_ascii_unicode _____________________ UnicodeTests.test_spawn_send_unicode _____________________ self = <tests.test_unicode.UnicodeTests testMethod=test_spawn_send_unicode> def test_spawn_send_unicode(self): # A bytes-based spawn should be able to send arbitrary unicode > p = pexpect.spawn('cat') tests/test_unicode.py:150: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_send_unicode ___________________ UnicodeTests.test_spawn_utf8_incomplete ____________________ self = <tests.test_unicode.UnicodeTests testMethod=test_spawn_utf8_incomplete> def test_spawn_utf8_incomplete(self): # This test case ensures correct incremental decoding, which # otherwise fails when the stream inspected by os.read() # does not align exactly at a utf-8 multibyte boundry: # UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in # position 0: unexpected end of data > p = pexpect.spawnu('cat', maxread=1) tests/test_unicode.py:161: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:806: in spawnu return spawn(*args, **kwargs) pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_spawn_utf8_incomplete ________________________ UnicodeTests.test_unicode_argv ________________________ self = <tests.test_unicode.UnicodeTests testMethod=test_unicode_argv> def test_unicode_argv(self): """ Ensure a program can be executed with unicode arguments. """ > p = pexpect.spawn(u'echo ǝpoɔıun', timeout=5, encoding='utf8') tests/test_unicode.py:178: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_unicode.UnicodeTests.test_unicode_argv _____________________ TestCaseWinsize.test_initial_winsize _____________________ self = <tests.test_winsize.TestCaseWinsize testMethod=test_initial_winsize> def test_initial_winsize(self): """ Assert initial window dimension size (24, 80). """ p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' > .format(self=self), timeout=3) tests/test_winsize.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_initial_winsize ______________ TestCaseWinsize.test_initial_winsize_by_dimension _______________ self = <tests.test_winsize.TestCaseWinsize testMethod=test_initial_winsize_by_dimension> def test_initial_winsize_by_dimension(self): """ Assert user-parameter window dimension size is initial. """ p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' .format(self=self), timeout=3, > dimensions=(40, 100)) tests/test_winsize.py:40: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_initial_winsize_by_dimension _______________________ TestCaseWinsize.test_setwinsize ________________________ self = <tests.test_winsize.TestCaseWinsize testMethod=test_setwinsize> def test_setwinsize(self): """ Ensure method .setwinsize() sends signal caught by child. """ p = pexpect.spawn('{self.PYTHONBIN} sigwinch_report.py' > .format(self=self), timeout=3) tests/test_winsize.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ pexpect/pty_spawn.py:197: in __init__ self._spawn(command, args, preexec_fn, dimensions) pexpect/pty_spawn.py:297: in _spawn cwd=self.cwd, **kwargs) pexpect/pty_spawn.py:308: in _spawnpty return ptyprocess.PtyProcess.spawn(args, **kwargs) /usr/share/python2.7/site-packages/ptyprocess/ptyprocess.py:220: in spawn ??? /usr/lib64/python2.7/pty.py:107: in fork master_fd, slave_fd = openpty() /usr/lib64/python2.7/pty.py:29: in openpty master_fd, slave_name = _open_terminal() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def _open_terminal(): """Open pty master and return (master_fd, tty_name). SGI and generic BSD version, for when openpty() fails.""" try: import sgi except ImportError: pass else: try: tty_name, master_fd = sgi._getpty(os.O_RDWR, 0666, 0) except IOError, msg: raise os.error, msg return master_fd, tty_name for x in 'pqrstuvwxyzPQRST': for y in '0123456789abcdef': pty_name = '/dev/pty' + x + y try: fd = os.open(pty_name, os.O_RDWR) except os.error: continue return (fd, '/dev/tty' + x + y) > raise os.error, 'out of pty devices' E OSError: out of pty devices /usr/lib64/python2.7/pty.py:70: OSError ----------------------------- Captured stdout call ----------------------------- tests.test_winsize.TestCaseWinsize.test_setwinsize ============== 132 failed, 66 passed, 5 skipped in 52.68 seconds =============== error: Bad exit status from /tmp/B.jKaXr6/BUILD/tmp/rpm-tmp.29293 (%build) RPM build errors: Bad exit status from /tmp/B.jKaXr6/BUILD/tmp/rpm-tmp.29293 (%build) ended at: Sun Mar 12 10:46:15 2017, done in 0:00:53.696273 error: No files produced. mesg: ttyname failed: Inappropriate ioctl for device + chmod -R u+rwX /tmp/B.jKaXr6/BUILD + rm -rf /tmp/B.jKaXr6/tmp /tmp/B.jKaXr6/BUILD mesg: ttyname failed: Inappropriate ioctl for device + rm -rf /tmp/B.jKaXr6 Begin-PLD-Builder-Info Build-Time: user:16.44s sys:2.27s real:69.13s (faults io:54 non-io:479314) End-PLD-Builder-Info
[Back to list of logs] [View rpm -qa of builder]