diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-11 13:51:24 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-11 13:51:24 +0300 |
commit | eea01186547f0f1568ea1c8f002da4e33b7b0e46 (patch) | |
tree | b0663dd0a1b965bd1bfa5e29d3b19c56f8eaf03d /tests/basics/int1.py | |
parent | b2d4fc06fc95d8e96eabd6ef470f0e871275fb82 (diff) |
py: Give up and make mp_obj_str_get_data() deal with bytes too.
This is not fully correct re: error handling, because we should check that
that types are used consistently (only str's or only bytes), but magically
makes lot of functions support bytes.
Diffstat (limited to 'tests/basics/int1.py')
-rw-r--r-- | tests/basics/int1.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basics/int1.py b/tests/basics/int1.py index 2daef9bf0..e8a0a0468 100644 --- a/tests/basics/int1.py +++ b/tests/basics/int1.py @@ -46,6 +46,7 @@ print(int('0B100', 2)) print(int('0100', 2)) print(int(' \t 0o12', 8)) print(int('0o12 \t ', 8)) +print(int(b"12", 10)) def test(value, base): |