aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portage/tests/util/futures/asyncio/test_pipe_closed.py')
-rw-r--r--lib/portage/tests/util/futures/asyncio/test_pipe_closed.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/portage/tests/util/futures/asyncio/test_pipe_closed.py b/lib/portage/tests/util/futures/asyncio/test_pipe_closed.py
index 972f8863a..50d561df6 100644
--- a/lib/portage/tests/util/futures/asyncio/test_pipe_closed.py
+++ b/lib/portage/tests/util/futures/asyncio/test_pipe_closed.py
@@ -25,7 +25,7 @@ class _PipeClosedTestCase:
def test_pty_device(self):
try:
read_end, write_end = pty.openpty()
- except EnvironmentError:
+ except OSError:
self.skipTest("pty not available")
self._do_test(read_end, write_end)
@@ -74,7 +74,7 @@ class ReaderPipeClosedTestCase(_PipeClosedTestCase, TestCase):
loop.run_until_complete(asyncio.sleep(0, loop=loop))
self.assertFalse(reader_callback.called.done())
- # Demonstrate that the callback is called afer the
+ # Demonstrate that the callback is called after the
# other end of the pipe has been closed.
write_end.close()
loop.run_until_complete(reader_callback.called)
@@ -123,7 +123,7 @@ class WriterPipeClosedTestCase(_PipeClosedTestCase, TestCase):
while True:
try:
os.write(write_end.fileno(), 512 * b"0")
- except EnvironmentError as e:
+ except OSError as e:
if e.errno != errno.EAGAIN:
raise
break
@@ -138,7 +138,7 @@ class WriterPipeClosedTestCase(_PipeClosedTestCase, TestCase):
self.assertFalse(writer_callback.called.done())
- # Demonstrate that the callback is called afer the
+ # Demonstrate that the callback is called after the
# other end of the pipe has been closed.
read_end.close()
loop.run_until_complete(writer_callback.called)