summaryrefslogtreecommitdiff
path: root/tests/basics/python36.py
diff options
context:
space:
mode:
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))