Commit 7d4ba9d2 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent d7da2dba
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())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment