| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
test_support.import_module on the appropriate modules
before any other imports.
|
| |
|
| |
|
|
|
|
| |
but the test passed on Linux and Solaris, hopefully other platforms too.
|
|
|
|
|
|
|
|
| |
Add code to read from master_fd in the parent, breaking when we get an OSError
(EIO can occur on Linux) or there's no more data to read. Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write. This will definitely happen on Mac OS X and could potentially
happen on other platforms. See the comment for details.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
regrtest runs it (the os.read() raises os.error). I can't figure out the cause, so am commenting out the test.
|
|
|
|
|
|
|
|
|
|
| |
the master should close the slave fd.
Added a test to test_pty.py that reads from the master_fd after doing
a pty.fork(); without the fix it hangs forever instead of raising an
exception. (<crossing fingers for the buildbots>)
2.5 backport candidate.
|
|
|
|
| |
the one at the end.
|
|
|
|
|
|
|
| |
The new char-array used in ioctl calls wasn't explicitly NUL-terminated;
quite probably the cause for the test_pty failures on Solaris that we
circumvented earlier. (I wasn't able to reproduce it with this patch, but it
has been somewhat elusive to start with.)
|
| |
|
|
|
|
|
|
|
|
|
| |
converted to CR CR NL. There may be a way to fix this with tcsetattr,
but I couldn't find it. There was a similar problem on IRIX.
Just normalize the output and compare that.
Will backport.
|
| |
|
|
|
|
|
|
|
|
|
| |
tty opened by os.openpty() isn't always a tty according to os.isatty(), when
it's tested inside the process that opened it. Doesn't affect actual
functionality, as using a tty this way is rarely, if ever, useful. Ignoring
the failure allows the test for actual functionality to continue.
Will backport to 2.4-maint.
|
|
|
|
| |
From SF patch #852334.
|
|
|
|
| |
Currently, test_pty hangs on AIX & HPUX if run after test_openpty.
|
|
|
|
|
|
| |
to 'properly configure the slave terminal'
See SF patch # 656590 for the details.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
|
|
|
|
| |
time use .replace() to change all \r\n into \n, not just the last one.
|
|
|
|
|
| |
mostly changes of / operators into //. Once or twice I did more or
less than recommended.
|
| |
|
|
|
|
|
| |
linefeeds into carriagereturn-linefeeds (which is apparently what IRIX
does.) Also add some comments, an extra test and reorganize it a bit.
|
|
|
|
| |
(This one was trivial -- no actual string. references in it!)
|
|
|
|
| |
'verify' iff it's used by a test module...
|
|
|
|
|
|
|
| |
and replaces them with a new API verify(). As a result the regression
suite will also perform its tests in optimization mode.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
|
|
|
|
|
| |
Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
|
| |
|
|
|
|
|
|
| |
apparently not considered a terminal, and so isatty(3) returns false. So we
skip the test for ttyness of the master side and just check the slave side,
which should really be a terminal.
|
|
|
|
|
| |
to signify a test that should be marked as 'skipped' rather than 'failed'.
Also 'document' it, in README.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
|
|
Test case for the pty module.
|