aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky2017-05-06 18:42:35 +0300
committerPaul Sokolovsky2017-05-06 18:42:35 +0300
commit4a4490ffcc906fe88e157dc926be54030c6fbf72 (patch)
tree050933e8e06e343de27daa0c76600665cc10c087 /tests
parentc1e0eb7afe2109a81f6e3ec28f9d01705010500c (diff)
py/modio: resource_stream: Implement "package" param handling.
Diffstat (limited to 'tests')
-rw-r--r--tests/io/resource_stream.py6
-rw-r--r--tests/io/resource_stream.py.exp1
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/io/resource_stream.py b/tests/io/resource_stream.py
index 940ffaf2f..86975f118 100644
--- a/tests/io/resource_stream.py
+++ b/tests/io/resource_stream.py
@@ -7,10 +7,8 @@ except AttributeError:
print('SKIP')
sys.exit()
-try:
- buf = uio.resource_stream("data", "file2")
-except NotImplementedError:
- pass
+buf = uio.resource_stream("data", "file2")
+print(buf.read())
# resource_stream(None, ...) look ups from current dir, hence sys.path[0] hack
buf = uio.resource_stream(None, sys.path[0] + "/data/file2")
diff --git a/tests/io/resource_stream.py.exp b/tests/io/resource_stream.py.exp
index 81c545efe..75404a347 100644
--- a/tests/io/resource_stream.py.exp
+++ b/tests/io/resource_stream.py.exp
@@ -1 +1,2 @@
1234
+1234