Browse Source

Snapshot of testing.main() which runs BME280 successfully

master^2
Cefn Hoile 6 years ago
parent
commit
b73cdee059
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      python/testing/__init__.py

+ 7
- 2
python/testing/__init__.py View File

@ -91,11 +91,16 @@ def test_prepare(casetype):
def main():
import microcontroller.esp8266 # temporary workaround for stack recursion error
"""
moduleNames = ["testing.implementation.all.digitalio",]
if agnostic.implementation == "micropython":
moduleNames.extend([ "testing.implementation.micropython.digitalio",])
"""
moduleNames = ["testing.implementation.all.bitbangio"]
unittest.raiseException = True # terminates with stack information on userspace Exception
unittest.raiseBaseException = True # terminates with stack information on system Exception
test_interactive(*moduleNames)
test_interactive(*moduleNames)
gc.collect()

|||||||
x
 
000:0
Loading…
Cancel
Save