Initial Commit
- initial default booting image
This commit is contained in:
6
support/testing/tests/package/sample_python_rpi_gpio.py
Normal file
6
support/testing/tests/package/sample_python_rpi_gpio.py
Normal file
@@ -0,0 +1,6 @@
|
||||
try:
|
||||
import RPi.GPIO # noqa
|
||||
except RuntimeError as e:
|
||||
assert str(e) == 'This module can only be run on a Raspberry Pi!'
|
||||
else:
|
||||
raise RuntimeError('Import succeeded when it should not have!')
|
||||
Reference in New Issue
Block a user