Make stickler happy

This commit is contained in:
Phil Howard
2020-03-20 12:00:31 +00:00
parent f532c80fbf
commit 6f94d98040
3 changed files with 2 additions and 3 deletions

View File

@@ -1,4 +1,3 @@
import sys
import mock
from tools import force_reimport

View File

@@ -44,4 +44,4 @@ def test_setup_with_reset(GPIO, spidev, numpy):
import ST7735
display = ST7735.ST7735(port=0, cs=0, dc=24, rst=4)
GPIO.setup.assert_called_with(4, GPIO.OUT)
del display
del display

View File

@@ -14,7 +14,7 @@ def force_reimport(module):
steps = module.split(".")
else:
steps = [module]
for i in range(len(steps)):
module = ".".join(steps[0:i + 1])
try: