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

crypto-aes
Damien George 5 years ago
parent adda38cf76
commit 512f4a6ad1

@ -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))

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

Loading…
Cancel
Save