diff options
| author | hathach <thach@tinyusb.org> | 2018-06-07 13:51:21 +0700 |
|---|---|---|
| committer | hathach <thach@tinyusb.org> | 2018-06-07 13:51:21 +0700 |
| commit | c854e2dc178b3bd0e5ddb8fbf30d1d3b98d8e589 (patch) | |
| tree | 182c97b50468d267749b5928b6706ab0c15b079c /tests | |
| parent | 6d4a2f5524ca47ac16410a5a35ea33a85c414bd0 (diff) | |
| parent | 9bb4ded5fa4e7d4aed179037d0cbcf5986df11a8 (diff) | |
Merge branch 'master' into usbboot
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/errno1.py | 5 | ||||
| -rw-r--r-- | tests/basics/errno1.py.exp | 3 | ||||
| l--------- | tests/pyboard.py | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/basics/errno1.py b/tests/basics/errno1.py index 63930b767..bbbfac10c 100644 --- a/tests/basics/errno1.py +++ b/tests/basics/errno1.py @@ -11,7 +11,10 @@ print(type(uerrno.EIO)) # check that errors are rendered in a nice way msg = str(OSError(uerrno.EIO)) -print(msg[:7], msg[-5:]) +print(msg[:7], msg[msg.find(']'):]) + +msg = str(OSError(uerrno.ENOBUFS)) +print(msg[:7], msg[msg.find(']'):]) # check that unknown errno is still rendered print(str(OSError(9999))) diff --git a/tests/basics/errno1.py.exp b/tests/basics/errno1.py.exp index c3703df4a..b5dd529e4 100644 --- a/tests/basics/errno1.py.exp +++ b/tests/basics/errno1.py.exp @@ -1,3 +1,4 @@ <class 'int'> -[Errno ] EIO +[Errno ] Input/output error +[Errno ] ENOBUFS 9999 diff --git a/tests/pyboard.py b/tests/pyboard.py index 3a82f6a6a..616773a31 120000 --- a/tests/pyboard.py +++ b/tests/pyboard.py @@ -1 +1 @@ -../tools/pyboard.py
\ No newline at end of file +../tools/cpboard.py
\ No newline at end of file |
