diff options
author | Damien George <damien@micropython.org> | 2021-04-22 19:32:21 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-04-23 22:03:46 +1000 |
commit | 3123f6918ba18b0a3f7a89500b450f4cb15e1aee (patch) | |
tree | 0916d58b5685fdfcf968004621b7766d3b2046fd /tests/extmod/vfs_fat_more.py | |
parent | 342d55529d6f3312fc158d7af005f56d5e30adef (diff) | |
download | micropython-3123f6918ba18b0a3f7a89500b450f4cb15e1aee.tar.gz micropython-3123f6918ba18b0a3f7a89500b450f4cb15e1aee.zip |
tests: Use .errno instead of .args[0] for OSError exceptions.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/vfs_fat_more.py')
-rw-r--r-- | tests/extmod/vfs_fat_more.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/vfs_fat_more.py b/tests/extmod/vfs_fat_more.py index 076802f6ad..f9b54fda00 100644 --- a/tests/extmod/vfs_fat_more.py +++ b/tests/extmod/vfs_fat_more.py @@ -90,7 +90,7 @@ for exist in ("", "/", "dir", "/dir", "dir/subdir"): try: uos.mkdir(exist) except OSError as er: - print("mkdir OSError", er.args[0] == 17) # EEXIST + print("mkdir OSError", er.errno == 17) # EEXIST uos.chdir("/") print(uos.stat("test5.txt")[:-3]) |