From ff3e65edee5959cd95f2268d7755d83a8f4a0d66 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 21 Sep 2009 19:56:26 +0000 Subject: [PATCH] Temporarily disable use of pty in py3k since it triggers an unresolved issue, http://bugs.python.org/issue5380. With this workaround, portage.tests.ebuild.test_spawn.SpawnTestCase.testLogfile() does not raise IOError. svn path=/main/trunk/; revision=14362 --- pym/portage/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index e2fd1fbaa..dcd38bb89 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -3741,6 +3741,10 @@ class config(object): # stop trying to use it after the first failure. _disable_openpty = False +if sys.hexversion >= 0x3000000: + # This is a temporary workaround for http://bugs.python.org/issue5380. + _disable_openpty = True + def _create_pty_or_pipe(copy_term_size=None): """ Try to create a pty and if then fails then create a normal -- 2.26.2