From b9fa0a843e239bcdaecbe16aaa508e9e25b5afce Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Fri, 4 Aug 2000 13:34:43 +0000 Subject: Raise 'TestSkipped' (from the test_support) module rather than 'ImportError' to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README. --- Lib/test/test_pty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_pty.py') diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index 5551cd119e..295ff3c3af 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -1,5 +1,5 @@ import pty, os, sys, string -from test_support import verbose, TestFailed +from test_support import verbose, TestFailed, TestSkipped TEST_STRING_1 = "I wish to buy a fish license." TEST_STRING_2 = "For my pet fish, Eric." @@ -25,7 +25,7 @@ try: debug("Got slave_fd '%d'"%slave_fd) except OSError: # " An optional feature could not be imported " ... ? - raise ImportError, "Pseudo-terminals (seemingly) not functional." + raise TestSkipped, "Pseudo-terminals (seemingly) not functional." if not os.isatty(master_fd): raise TestFailed, "master_fd is not a tty" -- cgit v1.2.1