summaryrefslogtreecommitdiff
path: root/tests/test_clone.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-08-20 23:11:02 +0100
committerDave Hibberd <hibby@debian.org>2026-08-20 23:11:02 +0100
commit5f4fe8ab00a12060662e5df0fc8855f0488de35d (patch)
tree95a7d9b81673c059b18a1e551079104050b4ca11 /tests/test_clone.py
parentdff1a610625ebe7841fca01e20ca6d86b65ee4d0 (diff)
New upstream version 20260814upstream/20260814
Diffstat (limited to 'tests/test_clone.py')
-rw-r--r--tests/test_clone.py14
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()