diff --git a/pioreactor/cli/pios.py b/pioreactor/cli/pios.py index eca436fb..6820c3ff 100644 --- a/pioreactor/cli/pios.py +++ b/pioreactor/cli/pios.py @@ -191,7 +191,6 @@ def _thread_function(unit: str) -> bool: return False except ErrorReturnCode_1 as e: logger.error(f"Error occurred: {e}. See logs for more.") - logger.debug(e.stderr, exc_info=True) return False for unit in units: diff --git a/pioreactor/tests/test_timing.py b/pioreactor/tests/test_timing.py index 30b149c8..b011c910 100644 --- a/pioreactor/tests/test_timing.py +++ b/pioreactor/tests/test_timing.py @@ -264,19 +264,22 @@ def sample_function(): def test_repeated_timer_interval_accuracy_with_pause_unpause(): - counter = [0] + counter = {"_": 0} def sample_function(): - counter[0] += 1 + counter["_"] += 1 - interval = 1 - rt = RepeatedTimer(interval, sample_function) + interval = 1.0 + rt = RepeatedTimer(interval, sample_function, run_after=0.0) rt.start() - time.sleep(1) + time.sleep(0.05) # offset slightly avoid race conditions + + time.sleep(1.0) + assert counter["_"] == 1 rt.pause() - time.sleep(2) + time.sleep(2.0) rt.unpause() - time.sleep(1) + time.sleep(1.0) rt.cancel() # The timer should have run only 2 times since we paused for 2 seconds - assert counter[0] == 2 + assert counter["_"] == 2 diff --git a/pioreactor/version.py b/pioreactor/version.py index 165f9643..53c38c79 100644 --- a/pioreactor/version.py +++ b/pioreactor/version.py @@ -5,7 +5,7 @@ # Append "dev" if a dev version # Append "rc0" if a rc version -__version__ = "23.7.31" +__version__ = "23.7.31.dev" def _get_hardware_version() -> tuple[int, int] | tuple[int, int, str]: