1 From: Jochen Sprickerhof <jspricke@debian.org>
2 Date: Thu, 15 Dec 2022 07:44:54 +0100
3 Subject: Don't mock list subclass
6 tests/unit/ec2/test_volume.py | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
9 diff --git a/tests/unit/ec2/test_volume.py b/tests/unit/ec2/test_volume.py
10 index 81d7f55..d4d8e4f 100644
11 --- a/tests/unit/ec2/test_volume.py
12 +++ b/tests/unit/ec2/test_volume.py
13 @@ -55,7 +55,7 @@ class VolumeTests(unittest.TestCase):
14 @mock.patch("boto.resultset.ResultSet")
15 def test_startElement_with_name_tagSet_calls_ResultSet(self, ResultSet, startElement):
16 startElement.return_value = None
17 - result_set = mock.Mock(ResultSet([("item", Tag)]))
18 + result_set = ResultSet([("item", Tag)])
20 volume.tags = result_set
21 retval = volume.startElement("tagSet", None, None)