summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/process
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-13 13:24:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-13 13:24:39 +0000
commit2cba51ec393227e8d2038aa84194162ed89c23ef (patch)
tree7dc668a02a255a88c8ad21a95b1cc13729f550e6 /pym/portage/tests/process
parent1dbc9399f3edde5140a61ec69ed54934b4dc6f51 (diff)
downloadportage-2cba51ec393227e8d2038aa84194162ed89c23ef.tar.gz
portage-2cba51ec393227e8d2038aa84194162ed89c23ef.tar.bz2
portage-2cba51ec393227e8d2038aa84194162ed89c23ef.zip
* Since can_poll_pty() is unsafe due to he possibility of the poll() call
blocking forever, replace it with a simpler test on /dev/null that's derived from a test in a glib2 configure script. * Remove PtyReaderTestCase since it has the same problem as can_poll_pty(). svn path=/main/trunk/; revision=11039
Diffstat (limited to 'pym/portage/tests/process')
-rw-r--r--pym/portage/tests/process/test_poll.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/pym/portage/tests/process/test_poll.py b/pym/portage/tests/process/test_poll.py
index 8a52f4577..96749d567 100644
--- a/pym/portage/tests/process/test_poll.py
+++ b/pym/portage/tests/process/test_poll.py
@@ -51,19 +51,3 @@ class PipeReaderTestCase(TestCase):
task_scheduler.run()
self._assertEqual(test_string, consumer.getvalue())
-
-class PtyReaderTestCase(PipeReaderTestCase):
-
- def _assertEqual(self, test_string, consumer_value):
- if test_string != consumer_value:
- # This test is expected to fail on some operating systems
- # such as Darwin that do not support poll() on pty devices.
- self.todo = True
- self.assertEqual(test_string, consumer_value)
-
- def _create_pipe(self):
-
- got_pty, master_fd, slave_fd = \
- portage._create_pty_or_pipe(copy_term_size=sys.stdout.fileno())
-
- return (master_fd, slave_fd)