mirror of
https://github.com/pimoroni/st7735-python.git
synced 2025-01-05 22:40:25 +03:00
Make stickler happy
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
import mock
|
||||
from tools import force_reimport
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user