summaryrefslogtreecommitdiff
path: root/tests/basics/python36.py
diff options
context:
space:
mode:
authorhathach <thach@tinyusb.org>2018-08-01 00:58:23 +0700
committerhathach <thach@tinyusb.org>2018-08-01 00:58:23 +0700
commit1e524f1b9800b4d734e0c3db0fb6434176c4d7a8 (patch)
tree06a6ffe912cb65d1bb78974d35f6b9eba3800c2a /tests/basics/python36.py
parent20c25f61d92cfde9f259ee06ee47915e7a3ea3c5 (diff)
parentbf033123a7fa75394fd7a01d17ec99afd9abe645 (diff)
Merge branch 'master' into nrf52840_usb_hid
Diffstat (limited to 'tests/basics/python36.py')
-rw-r--r--tests/basics/python36.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/basics/python36.py b/tests/basics/python36.py
new file mode 100644
index 000000000..20ecd9227
--- /dev/null
+++ b/tests/basics/python36.py
@@ -0,0 +1,10 @@
+# tests for things that only Python 3.6 supports
+
+# underscores in numeric literals
+print(100_000)
+print(0b1010_0101)
+print(0xff_ff)
+
+# underscore supported by int constructor
+print(int('1_2_3'))
+print(int('0o1_2_3', 8))