diff options
Diffstat (limited to 'pym/portage/tests/ebuild/test_pty_eof.py')
-rw-r--r-- | pym/portage/tests/ebuild/test_pty_eof.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/portage/tests/ebuild/test_pty_eof.py b/pym/portage/tests/ebuild/test_pty_eof.py index 3216eec19..8723372b1 100644 --- a/pym/portage/tests/ebuild/test_pty_eof.py +++ b/pym/portage/tests/ebuild/test_pty_eof.py @@ -15,8 +15,8 @@ class PtyEofTestCase(TestCase): # http://bugs.python.org/issue5380 # Since it might not be fixed, mark as todo. self.todo = True - result = portage._test_pty_eof() - # The result is only valid if openpty works (result is - # True or False, not None). - if result is not None: - self.assertEqual(result, True) + # The result is only valid if openpty does not raise EnvironmentError. + try: + self.assertEqual(portage._test_pty_eof(), True) + except EnvironmentError: + pass |