diff options
| author | hathach <thach@tinyusb.org> | 2018-06-07 13:50:04 +0700 |
|---|---|---|
| committer | hathach <thach@tinyusb.org> | 2018-06-07 13:50:04 +0700 |
| commit | 9bb4ded5fa4e7d4aed179037d0cbcf5986df11a8 (patch) | |
| tree | 2ad3519d31b3511db9d21a01896b4132f26be6a7 /tests | |
| parent | 52ebfd07a51749d996e149eccc104a2cc0fd294e (diff) | |
| parent | 44721cba3d5bb92d0226ec9451a0aaa95379b9f1 (diff) | |
Merge remote-tracking branch 'upstream/master'
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 |
