summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-08 17:05:32 +1000
committerDamien George <damien.p.george@gmail.com>2018-05-08 17:05:32 +1000
commit2ada1124d42a85e056637fc10c0c2764ba96bdd6 (patch)
tree13f5467d6ad0db18c089d5f9dc5d1c4577630bb1
parent74ab341d3a1bf3fa5979d8aa5bd390ac0bb319a1 (diff)
tests/cpydiff: Remove types_int_tobytesfloat now that it doesn't fail.
Commit e269cabe3ed8bed1b7181359febb686edbb748ae added a check that the first argument to the to_bytes() method is an integer, and now uPy follows CPython behaviour and raises a TypeError for this test. Note: CPython checks the argument types before checking the number of arguments, but uPy does it the other way around, so they give different exception messages for this test, but still the same type, a TypeError.
-rw-r--r--tests/cpydiff/types_int_tobytesfloat.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/cpydiff/types_int_tobytesfloat.py b/tests/cpydiff/types_int_tobytesfloat.py
deleted file mode 100644
index 5d5b980fa..000000000
--- a/tests/cpydiff/types_int_tobytesfloat.py
+++ /dev/null
@@ -1,10 +0,0 @@
-"""
-categories: Types,int
-description: Incorrect error message when passing float into to_bytes
-cause: Unknown
-workaround: Unknown
-"""
-try:
- int('1').to_bytes(1.0)
-except TypeError as e:
- print(e)