tests/unix: Add coverage test for uio.resource_stream from frozen str.

This commit is contained in:
Damien George 2018-03-03 23:58:03 +11:00
parent adda38cf76
commit 512f4a6ad1
2 changed files with 6 additions and 0 deletions

View File

@ -71,3 +71,8 @@ try:
import frzmpy2
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))

View File

@ -104,3 +104,4 @@ frzstr_pkg2.mod
frzmpy_pkg2.mod
1
ZeroDivisionError
b'# test frozen package'