X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=eventlet%2Ftests%2Fgreenpipe_test_with_statement.py;fp=eventlet%2Ftests%2Fgreenpipe_test_with_statement.py;h=0000000000000000000000000000000000000000;hb=358bd9258c2b6d2ee74de4dfd07a5123107abad4;hp=c0491b3fd1454b56611bfd6582a6d37c8e186816;hpb=376ff3bfe7071cc0793184a378c4e74508fb0d97;p=packages%2Ftrusty%2Fpython-eventlet.git diff --git a/eventlet/tests/greenpipe_test_with_statement.py b/eventlet/tests/greenpipe_test_with_statement.py deleted file mode 100644 index c0491b3..0000000 --- a/eventlet/tests/greenpipe_test_with_statement.py +++ /dev/null @@ -1,25 +0,0 @@ -from __future__ import with_statement - -import os - -from eventlet import greenio -from tests import LimitedTestCase - - -class TestGreenPipeWithStatement(LimitedTestCase): - def test_pipe_context(self): - # ensure using a pipe as a context actually closes it. - r, w = os.pipe() - - r = greenio.GreenPipe(r) - w = greenio.GreenPipe(w, 'w') - - with r: - pass - - assert r.closed and not w.closed - - with w as f: - assert f == w - - assert r.closed and w.closed