aboutsummaryrefslogtreecommitdiff
path: root/test/test_examples.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_examples.py')
-rwxr-xr-xtest/test_examples.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index f9badad..e20b47c 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -290,8 +290,8 @@ def test_cuse(capfd):
@contextmanager
def os_open(name, flags):
+ fd = os.open(name, flags)
try:
- fd = os.open(name, flags)
yield fd
finally:
os.close(fd)