summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/ebuild/test_pty_eof.py
blob: 0dd1e85069800a343d8164c52f09b15b475807ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

import portage
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
		# The result is only valid if openpty does not raise EnvironmentError.
		try:
			self.assertEqual(portage._test_pty_eof(), True)
		except EnvironmentError:
			pass