Skip to content

Commit

Permalink
Snapshot of testing.main() which runs BME280 successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
cefn committed Feb 20, 2018
1 parent e556c13 commit b73cdee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit b73cdee

Please sign in to comment.