PtyEofFdopenUnBufferedTestCase: PyPy TODO
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Dec 2011 03:23:38 +0000 (19:23 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Dec 2011 03:23:38 +0000 (19:23 -0800)
  https://bugs.pypy.org/issue956

pym/portage/tests/ebuild/test_pty_eof.py

index c8de3e2a70066e36a34e47eb4a316a35bee1092e..0b0bbdb357e727f38c91d940498dbff5461f191e 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 2009-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
+import platform
+
 from portage.tests import TestCase
 from portage.util._pty import _can_test_pty_eof, _test_pty_eof
 
@@ -37,6 +39,10 @@ class PtyEofFdopenUnBufferedTestCase(TestCase):
                        self.fail(skip_reason)
                        return
 
+               if platform.python_implementation() == 'PyPy':
+                       # https://bugs.pypy.org/issue956
+                       self.todo = True
+
                # The result is only valid if openpty does not raise EnvironmentError.
                if _can_test_pty_eof():
                        try: