projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3109e7
)
os_open(): don't attempt to close fd if open failed.
author
Nikolaus Rath
<Nikolaus@rath.org>
Sun, 6 Aug 2017 11:24:20 +0000
(13:24 +0200)
committer
Nikolaus Rath
<Nikolaus@rath.org>
Sun, 6 Aug 2017 11:24:20 +0000
(13:24 +0200)
test/test_examples.py
patch
|
blob
|
history
diff --git
a/test/test_examples.py
b/test/test_examples.py
index f9badad629c0942dbc7df1e7972df19ba966cb8b..e20b47c815161a62d9e22ace9c28398c57c450fb 100755
(executable)
--- 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)