summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pty.py
Commit message (Collapse)AuthorAgeFilesLines
* Restore skips of posix and pty tests on Windows by calling theR. David Murray2009-04-211-2/+6
| | | | | test_support.import_module on the appropriate modules before any other imports.
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-261-2/+2
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-261-2/+2
|
* This gets the test working on Solaris. It seems a little hokey to me,Neal Norwitz2007-04-271-0/+19
| | | | but the test passed on Linux and Solaris, hopefully other platforms too.
* Port r54805 from python25-maint branch:Barry Warsaw2007-04-131-0/+20
| | | | | | | | 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.
* Whitespace normalization.Tim Peters2007-03-121-13/+13
|
* Patch #1675471: convert test_pty to unittest.Georg Brandl2007-03-071-113/+123
|
* Whitespace normalization.Tim Peters2007-01-301-3/+3
|
* Frak; this test also failsAndrew M. Kuchling2006-12-221-7/+7
|
* Darn; this test works when you run test_pty.py directly, but fails when ↵Andrew M. Kuchling2006-12-221-5/+5
| | | | regrtest runs it (the os.read() raises os.error). I can't figure out the cause, so am commenting out the test.
* [Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect;Andrew M. Kuchling2006-12-221-0/+15
| | | | | | | | | | 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.
* Fix this test on Solaris. There can be embedded \r, so don't just replaceNeal Norwitz2006-04-261-2/+2
| | | | the one at the end.
* SF bug/patch #1433877: string parameter to ioctl not null terminatedThomas Wouters2006-04-251-8/+1
| | | | | | | 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.)
* whitespace normalisationAnthony Baxter2006-04-051-1/+1
|
* Fix test_pty on OSF/1 (Tru64). The problem is that the newline getsNeal Norwitz2006-04-031-5/+23
| | | | | | | | | 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.
* Fix typoNeal Norwitz2006-02-041-1/+1
|
* Work around a Solaris peculiarity that caused test_pty to sometimes fail: aThomas Wouters2006-01-281-1/+8
| | | | | | | | | 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.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* Prevent the pty test from hanging by setting an alarm.Neal Norwitz2003-03-211-30/+46
| | | | Currently, test_pty hangs on AIX & HPUX if run after test_openpty.
* Revert last change -- test works on HPUX again after Martin's checkinNeal Norwitz2003-01-011-3/+2
| | | | | | to 'properly configure the slave terminal' See SF patch # 656590 for the details.
* Comment out test, since it hangs on HPUX, still investigatingNeal Norwitz2002-12-311-2/+3
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | 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. :)
* Fix the second reincarnation of SF #456395 -- failure on IRIX. ThisGuido van Rossum2001-09-111-6/+2
| | | | time use .replace() to change all \r\n into \n, not just the last one.
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-1/+1
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* Whitespace normalization.Tim Peters2001-03-291-1/+1
|
* Allow the process of reading back what we wrote to a pty to transformThomas Wouters2001-03-221-24/+36
| | | | | linefeeds into carriagereturn-linefeeds (which is apparently what IRIX does.) Also add some comments, an extra test and reorganize it a bit.
* String method conversion.Eric S. Raymond2001-02-091-1/+1
| | | | (This one was trivial -- no actual string. references in it!)
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | 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.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-1/+1
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+0
|
* On some systems (like Solaris), the master end of a tty/pty pair isThomas Wouters2000-10-031-2/+0
| | | | | | 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.
* Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'Thomas Wouters2000-08-041-2/+2
| | | | | to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
* Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)Thomas Wouters2000-07-191-5/+4
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | 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 ;)
* Thomas Wouters <thomas@xs4all.net>:Fred Drake2000-06-301-0/+94
Test case for the pty module.