summaryrefslogtreecommitdiff
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/connection010.py1
-rw-r--r--python/tests/datatypes.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/python/tests/connection010.py b/python/tests/connection010.py
index 8adf20fd78..e966ede377 100644
--- a/python/tests/connection010.py
+++ b/python/tests/connection010.py
@@ -39,6 +39,7 @@ class TestServer:
return Server(connection, delegate=self.session)
def session(self, session):
+ session.auto_sync = False
return TestSession(session, self.queue)
class TestSession(Delegate):
diff --git a/python/tests/datatypes.py b/python/tests/datatypes.py
index e22e250f61..7844cf4d10 100644
--- a/python/tests/datatypes.py
+++ b/python/tests/datatypes.py
@@ -89,3 +89,14 @@ class RangedSetTest(TestCase):
assert 21 not in rs
assert 20 in rs
self.check(rs.ranges)
+
+ def testAddSelf(self):
+ a = RangedSet()
+ a.add(0, 8)
+ self.check(a.ranges)
+ a.add(0, 8)
+ self.check(a.ranges)
+ assert len(a.ranges) == 1
+ range = a.ranges[0]
+ assert range.lower == 0
+ assert range.upper == 8