diff options
author | Rami Ali <flowergrass@users.noreply.github.com> | 2016-12-29 12:55:23 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-29 13:22:19 +1100 |
commit | c15ebf7c8c797af0dc7e601dbb70dbe3777d8ee6 (patch) | |
tree | 8d2c4133b3dcfac9c032cb30ee9ff8810954a9aa /tests/extmod/ubinascii_micropython.py | |
parent | 45a8cc8f0b29f447eba6047112f38780ca8a89da (diff) | |
download | micropython-c15ebf7c8c797af0dc7e601dbb70dbe3777d8ee6.tar.gz micropython-c15ebf7c8c797af0dc7e601dbb70dbe3777d8ee6.zip |
tests/extmod: Improve ubinascii.c test coverage.
Diffstat (limited to 'tests/extmod/ubinascii_micropython.py')
-rw-r--r-- | tests/extmod/ubinascii_micropython.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/extmod/ubinascii_micropython.py b/tests/extmod/ubinascii_micropython.py new file mode 100644 index 0000000000..d68da3205d --- /dev/null +++ b/tests/extmod/ubinascii_micropython.py @@ -0,0 +1,8 @@ +try: + import ubinascii as binascii +except ImportError: + import binascii + +# two arguments supported in uPy but not CPython +a = binascii.hexlify(b'123', ':') +print(a) |