Skip to content
Snippets Groups Projects
Commit 7d4ba9d2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/io/resource_stream: Add test for uio.resource_stream().

parent d7da2dba
No related branches found
No related tags found
No related merge requests found
import uio
import sys
try:
uio.resource_stream
except AttributeError:
print('SKIP')
sys.exit()
try:
buf = uio.resource_stream("data", "file2")
except NotImplementedError:
pass
# resource_stream(None, ...) look ups from current dir, hence sys.path[0] hack
buf = uio.resource_stream(None, sys.path[0] + "/data/file2")
print(buf.read())
1234
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment