diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-31 12:31:46 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-31 12:31:46 +0000 |
| commit | dd07cc494d2f8a342ee0556a593b068800f9da5b (patch) | |
| tree | 07f455fe694b4a47959b76e9f93c0306690bc6a2 /tests/test_clone.py | |
| parent | aa0d17d5ad14d671e5ce02cb90f814e0a96fad98 (diff) | |
| parent | ef0af95bac2c3d310fe55f54853904395b57f884 (diff) | |
Update upstream source from tag 'upstream/20261030'
Update to upstream version '20261030'
with Debian dir 82dda47c52fda693a8e3b8228e4043c187b8dcfc
Diffstat (limited to 'tests/test_clone.py')
| -rw-r--r-- | tests/test_clone.py | 14 |
1 files changed, 12 insertions, 2 deletions
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() |
