Permalink
Browse files

tests: Use read() instead of readall().

  • Loading branch information...
1 parent 00a9590 commit 8212773adb69309639833395bae8df487bd15c66 @pfalcon pfalcon committed Nov 13, 2016
Showing with 4 additions and 4 deletions.
  1. +1 −1 tests/io/file1.py
  2. +2 −2 tests/wipy/os.py
  3. +1 −1 tests/wipy/uart.py
View
@@ -37,7 +37,7 @@
print('OSError')
f.close()
-# readall() error (call read() for compat with CPy)
+# read() w/o args error
f = open('io/data/file1', 'ab')
try:
f.read()
View
@@ -38,7 +38,7 @@
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 @@
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()
View
@@ -72,7 +72,7 @@
print(uart1.any() == 0)
uart0.write(b'1234567890')
-print(uart1.readall() == b'1234567890')
+print(uart1.read() == b'1234567890')
# tx only mode
uart0 = UART(0, 1000000, pins=('GP12', None))

0 comments on commit 8212773

Please sign in to comment.