From b73cdee0593b29afe753bc8bdaee4fc2d48e6c2e Mon Sep 17 00:00:00 2001 From: Cefn Hoile Date: Tue, 20 Feb 2018 18:06:19 +0000 Subject: [PATCH] Snapshot of testing.main() which runs BME280 successfully --- python/testing/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/testing/__init__.py b/python/testing/__init__.py index 87e3900c..5be50c18 100644 --- a/python/testing/__init__.py +++ b/python/testing/__init__.py @@ -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) \ No newline at end of file + test_interactive(*moduleNames) + +gc.collect() \ No newline at end of file