From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R0I1J-00084x-2V for garchives@archives.gentoo.org; Sun, 04 Sep 2011 19:06:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D06221C1B6; Sun, 4 Sep 2011 19:06:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 71F3E21C389 for ; Sun, 4 Sep 2011 19:06:09 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E773D1B4034 for ; Sun, 4 Sep 2011 19:06:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id EA61180042 for ; Sun, 4 Sep 2011 19:06:07 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <22723ad12ea03fada67c7c80df66b4524cfe00be.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/ebuild/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/tests/ebuild/test_pty_eof.py X-VCS-Directories: pym/portage/tests/ebuild/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 22723ad12ea03fada67c7c80df66b4524cfe00be Date: Sun, 4 Sep 2011 19:06:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 7d0eeb8df0c0fd3fb2b26519d79cbfad commit: 22723ad12ea03fada67c7c80df66b4524cfe00be Author: Zac Medico gentoo org> AuthorDate: Sun Sep 4 19:05:48 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Sep 4 19:05:48 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D22723ad1 test_pty_eof: add SKIP msg for unsupported plat --- 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 4b6ff21..c8de3e2 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_p= ty_eof class PtyEofFdopenBufferedTestCase(TestCase): =20 def testPtyEofFdopenBuffered(self): + + if not _can_test_pty_eof(): + skip_reason =3D "unsupported on this platform" + self.portage_skip =3D 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. =20 + if not _can_test_pty_eof(): + skip_reason =3D "unsupported on this platform" + self.portage_skip =3D skip_reason + self.fail(skip_reason) + return + # The result is only valid if openpty does not raise EnvironmentError. if _can_test_pty_eof(): try: