summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-24 21:50:10 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-24 21:50:10 +0000
commit7f16514a8aef6f0ac046afd895bc9294b30ab038 (patch)
tree233a109d4e92fe90b1a06068e1266869fe9f17a5
parent81c69aafecb4d63054b45a3eac86642f9ee6040c (diff)
downloadportage-7f16514a8aef6f0ac046afd895bc9294b30ab038.tar.gz
portage-7f16514a8aef6f0ac046afd895bc9294b30ab038.tar.bz2
portage-7f16514a8aef6f0ac046afd895bc9294b30ab038.zip
Add a test case for http://bugs.python.org/issue5380 and mark it as 'todo'
since it fails with current versions of python 3. svn path=/main/trunk/; revision=14415
-rw-r--r--pym/portage/tests/ebuild/test_pty_eof.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/pym/portage/tests/ebuild/test_pty_eof.py b/pym/portage/tests/ebuild/test_pty_eof.py
new file mode 100644
index 000000000..3216eec19
--- /dev/null
+++ b/pym/portage/tests/ebuild/test_pty_eof.py
@@ -0,0 +1,22 @@
+# Copyright 1998-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+import pty
+
+import portage
+from portage import os
+from portage.tests import TestCase
+
+class PtyEofTestCase(TestCase):
+
+ def testPtyEof(self):
+ # This tests if the following python issue is fixed yet:
+ # http://bugs.python.org/issue5380
+ # Since it might not be fixed, mark as todo.
+ self.todo = True
+ result = portage._test_pty_eof()
+ # The result is only valid if openpty works (result is
+ # True or False, not None).
+ if result is not None:
+ self.assertEqual(result, True)