summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/fun_name.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/fun_name.py')
-rw-r--r--tests/basics/fun_name.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/fun_name.py b/tests/basics/fun_name.py
index a724f41118..53ca935616 100644
--- a/tests/basics/fun_name.py
+++ b/tests/basics/fun_name.py
@@ -15,3 +15,10 @@ try:
except AttributeError:
print('SKIP')
raise SystemExit
+
+# __name__ of a bound native method is not implemented in uPy
+# the test here is to make sure it doesn't crash
+try:
+ str((1).to_bytes.__name__)
+except AttributeError:
+ pass