summaryrefslogtreecommitdiff
path: root/tests/wipy
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-05-30 10:44:13 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.com>2020-06-03 10:56:35 +0100
commitdd5d7c86d22807c021dd1711eb7dd3daebc5cfcf (patch)
treedde417af2cae8cb1797582d6489eab9cb9caeddf /tests/wipy
parent60df6170cc5d0e495fde9613c05c55b64189b425 (diff)
Fix up end of file and trailing whitespace.
This can be enforced by pre-commit, but correct it separately to make it easier to review.
Diffstat (limited to 'tests/wipy')
-rw-r--r--tests/wipy/i2c.py1
-rw-r--r--tests/wipy/pin.py7
-rw-r--r--tests/wipy/sd.py1
-rw-r--r--tests/wipy/uart.py6
-rw-r--r--tests/wipy/wlan/wlan.py1
5 files changed, 6 insertions, 10 deletions
diff --git a/tests/wipy/i2c.py b/tests/wipy/i2c.py
index 693155419..39dcdc722 100644
--- a/tests/wipy/i2c.py
+++ b/tests/wipy/i2c.py
@@ -173,4 +173,3 @@ except Exception:
# reinitialization must work
i2c.init(baudrate=400000)
print(i2c)
-
diff --git a/tests/wipy/pin.py b/tests/wipy/pin.py
index 22c7c6176..666ecb66b 100644
--- a/tests/wipy/pin.py
+++ b/tests/wipy/pin.py
@@ -1,7 +1,7 @@
-"""
-This test need a set of pins which can be set as inputs and have no external
+"""
+This test need a set of pins which can be set as inputs and have no external
pull up or pull down connected.
-GP12 and GP17 must be connected together
+GP12 and GP17 must be connected together
"""
from machine import Pin
import os
@@ -179,4 +179,3 @@ try:
pin.id('ABC') # id cannot be set
except Exception:
print('Exception')
-
diff --git a/tests/wipy/sd.py b/tests/wipy/sd.py
index 92746e01e..c946e0c9f 100644
--- a/tests/wipy/sd.py
+++ b/tests/wipy/sd.py
@@ -43,4 +43,3 @@ try:
sd = SD(pins=('GP10', 'GP11'))
except Exception:
print("Exception")
-
diff --git a/tests/wipy/uart.py b/tests/wipy/uart.py
index 8e794015d..d8b405f77 100644
--- a/tests/wipy/uart.py
+++ b/tests/wipy/uart.py
@@ -1,5 +1,5 @@
'''
-UART test for the CC3200 based boards.
+UART test for the CC3200 based boards.
UART0 and UART1 must be connected together for this test to pass.
'''
@@ -58,7 +58,7 @@ print(uart0.read() == None)
uart0.write(b'123')
buf = bytearray(3)
-print(uart1.readinto(buf, 1) == 1)
+print(uart1.readinto(buf, 1) == 1)
print(buf)
print(uart1.readinto(buf) == 2)
print(buf)
@@ -145,7 +145,7 @@ except Exception:
try:
UART(2, 9600)
except Exception:
- print('Exception')
+ print('Exception')
for uart_id in uart_id_range:
uart = UART(uart_id, 1000000)
diff --git a/tests/wipy/wlan/wlan.py b/tests/wipy/wlan/wlan.py
index 49e2e4af6..96121325c 100644
--- a/tests/wipy/wlan/wlan.py
+++ b/tests/wipy/wlan/wlan.py
@@ -179,4 +179,3 @@ try:
wifi.ifconfig(config=())
except:
print('Exception')
-