summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/master' into document-blocking-writedocument-blocking-writeJeff Quast2015-09-205-69/+71
|\
| * Do not assert trailing output on TRAVIS-CIJeff Quast2015-09-202-5/+14
| |
| * interact tests: prefer getch over echo_w_promptJeff Quast2015-09-203-68/+32
| | | | | | | | | | this ensures more reliable clean exit, as is necessary in negative test for interact(escape_character=None)
| * Use ^C in test_interact_escape_None, ^D unreliableJeff Quast2015-09-201-2/+1
| | | | | | | | | | Test intermittently fails PyPy and Travis-CI hosts, where EOF is incorrectly interpreted instead of captured as exception.
| * Allow {p}.interact(escape_character=None)Jeff Quast2015-09-183-3/+22
| | | | | | | | | | | | | | | | | | | | | | For those who wish to disable the ability to escape using escape_character until normal process termination, they may now set the value of escape_character to None. Some of the related docstring on escape_character was made more brief and clear about its related value behavior. This closes #131 #132 #167
| * Tests cases and documentation to supplement wait()Jeff Quast2015-04-261-8/+19
| | | | | | | | | | | | | | This matches the same branch of ptyprocess, noexception-on-wait-after-terminate, which allows calling the wait() method multiple times without raising an exception.
* | Merge remote-tracking branch 'origin/master' into document-blocking-writeJeff Quast2015-04-2615-126/+795
|\ \ | |/
| * bugfix timeout parameter in maxcanon testJeff Quast2015-04-251-2/+2
| |
| * workaround travis-ci's strange EOF issueJeff Quast2015-04-241-6/+12
| |
| * Merge remote-tracking branch 'origin/freebsd-support' into bugfix-virtualenvJeff Quast2015-04-241-2/+26
| |\
| | * FreeBSD: Necessary to skip test_beyond_max_icanonJeff Quast2015-02-221-2/+18
| | | | | | | | | | | | sendline('_' * send_bytes) causes os.write to BLOCK indefinitely
| | * FreeBSD: Document magic max canon value of 1920Jeff Quast2015-02-221-2/+10
| | |
| * | style: remove more 1-character variablesJeff Quast2015-02-141-10/+10
| | |
| * | Negative test: ensure TypeError is raised.Jeff Quast2015-02-141-1/+9
| | |
| * | rename 'test_run_X' as 'test_run_event_as_X"Jeff Quast2015-02-141-4/+4
| | |
| * | pep8 and cleanup test_run.pyJeff Quast2015-02-141-31/+45
| | | | | | | | | | | | | | | | | | 79-line columns, space before '(' in function definition, once line between methods, two lines between classes and functions, No one-character variables.
| * | Allows also method callback for events argument in pexpect.run()Samuel Bancal2015-02-121-0/+52
| |/ | | | | | | Updated test_run.py for this case
| * Update tests READMEThomas Kluyver2015-01-191-14/+4
| |
| * Merge pull request #106 from pexpect/issue-104-cannot-exec-setuidsThomas Kluyver2014-12-201-15/+94
| |\ | | | | | | Issue 104 cannot exec setuids
| | * Comment on the cause for 'group executable' == noJeff Quast2014-12-191-0/+4
| | |
| | * Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-12-191-2/+2
| | |\
| | * \ Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-12-185-41/+221
| | |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: pexpect/__init__.py
| | * \ \ Merge remote-tracking branch 'origin/master' into issue-104-cannot-exec-setuidsJeff Quast2014-11-237-27/+318
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: doc/history.rst
| | * | | | Add tests for running as root on Solaris, usingJeff Quast2014-08-251-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | 'isroot' check.
| | * | | | Closes issue #104 -- cannot execute sudo(8)jquast2014-08-241-15/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, misinterpreted that os.access(file, X_OK) always returns True on Solaris. Yes, but only for the uid of 0. Python issue #13706 closed "not a bug" reads to "just use os.stat()", so we went to great lengths to do so quite exhaustively. But this is wrong -- *only* when root, should we check the file modes -- os.access of X_OK works perfectly fine for non-root users. And, we should only check if any of the executable bits are set. Alas, it is true, you may execute that which you may not read -- because as root, you can always read it anyway. Verified similar solution in NetBSD test.c (/bin/test), OpenBSD ksh for its built-in test, and what FreeBSD/Darwin for their implementation of which.c.
| * | | | | Merge pull request #164 from takluyver/contextmanagerJeff Quast2014-12-191-0/+10
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | | Allow spawn() and friends to be used as context managers
| | * | | | Allow spawn() and friends to be used as context managersThomas Kluyver2014-12-191-0/+10
| | | |_|/ | | |/| | | | | | | | | | | | Closes gh-111
| * | | | Update test case for preexec_fnThomas Kluyver2014-12-191-2/+2
| |/ / /
| * | | Merge pull request #79 from pexpect/doc-and-test-max-canonThomas Kluyver2014-11-251-0/+152
| |\ \ \ | | | | | | | | | | Test and document PC_MAX_CANON.
| | * | | Strange intermittent travis-ci on-pypy failureJeff Quast2014-11-241-8/+15
| | | | |
| | * | | Make some desperate attempts at partial-Travis-CIJeff Quast2014-11-241-7/+10
| | | | |
| | * | | This should now pass on LinuxJeff Quast2014-11-241-6/+6
| | | | |
| | * | | Revert back to N_TTY_BUF_SIZE + 1 for LinuxJeff Quast2014-11-241-1/+1
| | | | |
| | * | | Seemingly, linux only BEL's on echo=TrueJeff Quast2014-11-241-3/+5
| | | | |
| | * | | Fix failing tests, on OSX at least. Pushing ..Jeff Quast2014-11-241-0/+140
| | | | |
| * | | | Propose test-runner fork prevention schemeJeff Quast2014-11-241-0/+13
| |/ / /
| * | | Merge pull request #148 from jquast/unset-buildagent-signal-handlersJeff Quast2014-11-242-37/+49
| |\ \ \ | | | | | | | | | | Unset ignored signal handlers by build agents
| | * | | use signal_value, resolving TypeError of getattr()Jeff Quast2014-11-231-2/+2
| | | | |
| | * | | Resolve AttributeError in restore_ignored_signalsJeff Quast2014-11-231-1/+1
| | | | |
| | * | | Set default signal handlers for SIGINT and SIGHUP.Jeff Quast2014-11-232-37/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to test_misc.py comments, fedora's build agent has the same problem as ours. We use the setUp and tearDown methods to set and restore these signals, if ignored.
| * | | | Increase timeout of replwrap test from 2=>5Jeff Quast2014-11-231-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OSX build slave is almost as bad as travis, its very sluggish -- Anyway this timeout condition occurs intermittently presumably because it is too short https://teamcity-master.pexpect.org/viewLog.html?buildId=782&buildTypeId=Pexpect_MacOs&tab=buildLog#_focus=499
| * | | Delegate sending control characters to ptyprocessThomas Kluyver2014-11-231-2/+5
| | | |
| * | | Delegate more methods to ptyprocessThomas Kluyver2014-11-231-1/+1
| | |/ | |/|
| * | Merge pull request #142 from pexpect/failed-str-selfJeff Quast2014-11-221-0/+26
| |\ \ | | | | | | | | Failure in __str__() before any output.
| | * | Use str(p) and not p.__str__()Jeff Quast2014-11-221-2/+3
| | | |
| | * | use isinstance of 'str', not 'basestring'Jeff Quast2014-11-221-2/+2
| | | |
| | * | Failure in __str__() before any output.Jeff Quast2014-11-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When calling str() on a spawn class object before it has any command output, the __str__() override attempts to truncate long command output while the value of self.before is still None, raising: TypeError: 'NoneType' object has no attribute '__getitem__'
| * | | Fix 2nd and 3rd expect/response PS1 promptJeff Quast2014-11-221-2/+2
| | | |
| * | | Make sure when overriding setUp to call super'sJeff Quast2014-11-221-0/+2
| | | |
| * | | remove TODO about ls and change to use unameJeff Quast2014-11-221-7/+2
| | | |