summaryrefslogtreecommitdiff
path: root/tests/io/resource_stream.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2021-12-08 14:18:39 +1100
committerDamien George <damien@micropython.org>2021-12-17 23:53:44 +1100
commitcc23e99f320e5465db93b8cc021972a634692b63 (patch)
treed4ac5eeb22087a14b22599bce6513ee89232777b /tests/io/resource_stream.py
parentd6dc4cb65a222bd05ec2746c37e457c56484e780 (diff)
py/modio: Remove io.resource_stream function.
This feature is not enabled on any port, it's not in CPython's io module, and functionality is better suited to the micropython-lib implementation of pkg_resources.
Diffstat (limited to 'tests/io/resource_stream.py')
-rw-r--r--tests/io/resource_stream.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/io/resource_stream.py b/tests/io/resource_stream.py
deleted file mode 100644
index b589ff99b..000000000
--- a/tests/io/resource_stream.py
+++ /dev/null
@@ -1,15 +0,0 @@
-import uio
-import usys
-
-try:
- uio.resource_stream
-except AttributeError:
- print("SKIP")
- raise SystemExit
-
-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, usys.path[0] + "/data/file2")
-print(buf.read())