From 5f4fe8ab00a12060662e5df0fc8855f0488de35d Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 20 Aug 2026 23:11:02 +0100 Subject: New upstream version 20260814 --- tests/test_clone.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'tests/test_clone.py') diff --git a/tests/test_clone.py b/tests/test_clone.py index cb41bfb..cd29f17 100644 --- a/tests/test_clone.py +++ b/tests/test_clone.py @@ -16,9 +16,19 @@ class SerialException(Exception): class SerialNone(serialtrace.SerialTrace): + def __init__(self, *a, **k): + super().__init__(*a, **k) + self.port = '/dev/ttyUSB0' + def flush(self): pass + def reset_input_buffer(self): + pass + + def reset_output_buffer(self): + pass + def inWaiting(self): return len(self.read(256)) @@ -108,12 +118,12 @@ class TestCaseClone(base.DriverTest): self.radio._mmap = orig_mmap self.radio.status_fn = lambda s: True - msg = ('Clone should have failed and raised an exception ' + msg = ('Clone in should have failed and raised an exception ' 'that inherits from RadioError') with self.assertRaises(errors.RadioError, msg=msg): self.radio.sync_in() - msg = ('Clone should have failed and raised an exception ' + msg = ('Clone out should have failed and raised an exception ' 'that inherits from RadioError') with self.assertRaises(errors.RadioError, msg=msg): self.radio.sync_out() -- cgit v1.2.3