cc3200/tools/smoke.py: Change readall() to read().
This commit is contained in:
parent
c3d96d387c
commit
aed3b5b7ba
@ -51,7 +51,7 @@ n_w = f.write(test_bytes)
|
|||||||
print(n_w == len(test_bytes))
|
print(n_w == len(test_bytes))
|
||||||
f.close()
|
f.close()
|
||||||
f = open('test.txt', 'r')
|
f = open('test.txt', 'r')
|
||||||
r = bytes(f.readall(), 'ascii')
|
r = bytes(f.read(), 'ascii')
|
||||||
# check that we can write and read it correctly
|
# check that we can write and read it correctly
|
||||||
print(r == test_bytes)
|
print(r == test_bytes)
|
||||||
f.close()
|
f.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user