diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/io/resource_stream.py | 15 | ||||
| -rw-r--r-- | tests/io/resource_stream.py.exp | 2 | ||||
| -rw-r--r-- | tests/unix/extra_coverage.py | 6 | ||||
| -rw-r--r-- | tests/unix/extra_coverage.py.exp | 1 |
4 files changed, 0 insertions, 24 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()) diff --git a/tests/io/resource_stream.py.exp b/tests/io/resource_stream.py.exp deleted file mode 100644 index 75404a347..000000000 --- a/tests/io/resource_stream.py.exp +++ /dev/null @@ -1,2 +0,0 @@ -1234 -1234 diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py index b4808993a..8ea27cbf2 100644 --- a/tests/unix/extra_coverage.py +++ b/tests/unix/extra_coverage.py @@ -89,12 +89,6 @@ try: except ZeroDivisionError: print("ZeroDivisionError") -# test loading a resource from a frozen string -import uio - -buf = uio.resource_stream("frzstr_pkg2", "mod.py") -print(buf.read(21)) - # test for MP_QSTR_NULL regression from frzqstr import returns_NULL diff --git a/tests/unix/extra_coverage.py.exp b/tests/unix/extra_coverage.py.exp index ea91813fc..8ee233a71 100644 --- a/tests/unix/extra_coverage.py.exp +++ b/tests/unix/extra_coverage.py.exp @@ -174,5 +174,4 @@ frzstr_pkg2.mod frzmpy_pkg2.mod 1 ZeroDivisionError -b'# test frozen package' NULL |
