aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-12-22 13:34:17 -0800
committerZac Medico <zmedico@gentoo.org>2011-12-22 13:34:17 -0800
commit22be2988af6d8425d5c4cf66d92b8b8657bdbc5a (patch)
treee6affd4671fdb05a390a2369a2b4acd57876c908 /pym/portage/tests/ebuild
parentconfig.setcpv(): use dbapi._aux_cache_keys (diff)
downloadportage-22be2988af6d8425d5c4cf66d92b8b8657bdbc5a.tar.gz
portage-22be2988af6d8425d5c4cf66d92b8b8657bdbc5a.tar.bz2
portage-22be2988af6d8425d5c4cf66d92b8b8657bdbc5a.zip
_pty.py: remove _test_pty_eof()
If array.fromfile() is not used, then _test_pty_eof() is useless. This function was for runtime detection of python issue 5380: http://bugs.python.org/issue5380 However, array.fromfile() use has since been abandoned due to bugs that exist in all known versions of Python (including Python 2.7 and Python 3.2). See PipeReaderArrayTestCase, for example.
Diffstat (limited to 'pym/portage/tests/ebuild')
-rw-r--r--pym/portage/tests/ebuild/test_pty_eof.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/pym/portage/tests/ebuild/test_pty_eof.py b/pym/portage/tests/ebuild/test_pty_eof.py
deleted file mode 100644
index fe218b6fa..000000000
--- a/pym/portage/tests/ebuild/test_pty_eof.py
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright 2009-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-from portage.tests import TestCase
-from portage.util._pty import _can_test_pty_eof, _test_pty_eof
-
-class PtyEofTestCase(TestCase):
-
- def testPtyEof(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.
- self.todo = True
- # The result is only valid if openpty does not raise EnvironmentError.
- if _can_test_pty_eof():
- try:
- self.assertEqual(_test_pty_eof(), True)
- except EnvironmentError:
- pass