summaryrefslogtreecommitdiffstatshomepage
path: root/tests/wipy/os.py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-14 00:27:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-14 00:27:35 +0300
commit8212773adb69309639833395bae8df487bd15c66 (patch)
tree71066fbe13951bf14b117471168adc75a86885bc /tests/wipy/os.py
parent00a9590e3a27c8784a9d3a95c669142aad4a025f (diff)
downloadmicropython-8212773adb69309639833395bae8df487bd15c66.tar.gz
micropython-8212773adb69309639833395bae8df487bd15c66.zip
tests: Use read() instead of readall().
Diffstat (limited to 'tests/wipy/os.py')
-rw-r--r--tests/wipy/os.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wipy/os.py b/tests/wipy/os.py
index f81d1cee8a..0596a16b52 100644
--- a/tests/wipy/os.py
+++ b/tests/wipy/os.py
@@ -38,7 +38,7 @@ n_w = f.write(test_bytes)
print(n_w == len(test_bytes))
f.close()
f = open('test.txt', 'r')
-r = bytes(f.readall(), 'ascii')
+r = bytes(f.read(), 'ascii')
# check that we can write and read it correctly
print(r == test_bytes)
f.close()
@@ -65,7 +65,7 @@ n_w = f.write(test_bytes)
print(n_w == len(test_bytes))
f.close()
f = open('test.txt', 'r')
-r = bytes(f.readall(), 'ascii')
+r = bytes(f.read(), 'ascii')
# check that we can write and read it correctly
print(r == test_bytes)
f.close()