diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-04 12:05:48 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-04 12:05:48 -0700 |
commit | 22723ad12ea03fada67c7c80df66b4524cfe00be (patch) | |
tree | 38f946cc56ff70f48b14e0f993896e1b15c11536 | |
parent | 8b977710e7725d395d4d970d17a2d5192df86bbc (diff) | |
download | portage-22723ad12ea03fada67c7c80df66b4524cfe00be.tar.gz portage-22723ad12ea03fada67c7c80df66b4524cfe00be.tar.bz2 portage-22723ad12ea03fada67c7c80df66b4524cfe00be.zip |
test_pty_eof: add SKIP msg for unsupported plat
-rw-r--r-- | pym/portage/tests/ebuild/test_pty_eof.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/portage/tests/ebuild/test_pty_eof.py b/pym/portage/tests/ebuild/test_pty_eof.py index 4b6ff21d0..c8de3e2a7 100644 --- a/pym/portage/tests/ebuild/test_pty_eof.py +++ b/pym/portage/tests/ebuild/test_pty_eof.py @@ -7,6 +7,13 @@ from portage.util._pty import _can_test_pty_eof, _test_pty_eof class PtyEofFdopenBufferedTestCase(TestCase): def testPtyEofFdopenBuffered(self): + + if not _can_test_pty_eof(): + skip_reason = "unsupported on this platform" + self.portage_skip = skip_reason + self.fail(skip_reason) + return + # This tests if the following python issue is fixed yet: # http://bugs.python.org/issue5380 # Since it might not be fixed, mark as todo. @@ -24,6 +31,12 @@ class PtyEofFdopenUnBufferedTestCase(TestCase): # with python3 as long as fdopen is called with a bufsize # argument of 0. + if not _can_test_pty_eof(): + skip_reason = "unsupported on this platform" + self.portage_skip = skip_reason + self.fail(skip_reason) + return + # The result is only valid if openpty does not raise EnvironmentError. if _can_test_pty_eof(): try: |