From: Zac Medico Date: Mon, 21 Sep 2009 19:56:26 +0000 (-0000) Subject: Temporarily disable use of pty in py3k since it triggers an unresolved X-Git-Tag: v2.2_rc42~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ff3e65edee5959cd95f2268d7755d83a8f4a0d66;p=portage.git 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 --- 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