mirror of
https://github.com/micropython/micropython.git
synced 2026-03-10 19:00:30 +01:00
tests/basics/builtin_str_hex.py: Remove corresponding .exp file.
As of CPython 3.7 `bytes.fromhex()` skips all ASCII whitespace. And as of CPython 3.8 `bytes.hex()` supports the optional separator argument. So this test no longer needs a .exp file. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -35,5 +35,5 @@ for x in (
|
||||
):
|
||||
try:
|
||||
print(bytes.fromhex(x))
|
||||
except ValueError as e:
|
||||
print("ValueError:", e)
|
||||
except ValueError:
|
||||
print("ValueError", x)
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
0001020304050607
|
||||
0001020304050607
|
||||
0001020304050607
|
||||
00:01:02:03:04:05:06:07
|
||||
00:01:02:03:04:05:06:07
|
||||
00:01:02:03:04:05:06:07
|
||||
08090a0b0c0d0e0f
|
||||
08090a0b0c0d0e0f
|
||||
08090a0b0c0d0e0f
|
||||
08:09:0a:0b:0c:0d:0e:0f
|
||||
08:09:0a:0b:0c:0d:0e:0f
|
||||
08:09:0a:0b:0c:0d:0e:0f
|
||||
7f80ff
|
||||
7f80ff
|
||||
7f80ff
|
||||
7f:80:ff
|
||||
7f:80:ff
|
||||
7f:80:ff
|
||||
313233344142434461626364
|
||||
313233344142434461626364
|
||||
313233344142434461626364
|
||||
31:32:33:34:41:42:43:44:61:62:63:64
|
||||
31:32:33:34:41:42:43:44:61:62:63:64
|
||||
31:32:33:34:41:42:43:44:61:62:63:64
|
||||
b'\x00\x01\x02\x03\x04\x05\x06\x07'
|
||||
b'\x08\t\n\x0b\x0c\r\x0e\x0f'
|
||||
b'\x7f\x80\xff'
|
||||
b'1234ABCDabcd'
|
||||
b'\xab\xcd\xef'
|
||||
b'\xab\xcd\xef'
|
||||
b'\xab\xcd\xef'
|
||||
b'\xab\xcd\xef'
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
ValueError: non-hex digit
|
||||
Reference in New Issue
Block a user