mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
21 lines
852 B
Diff
21 lines
852 B
Diff
From: Jochen Sprickerhof <jspricke@debian.org>
|
|
Date: Thu, 15 Dec 2022 07:44:54 +0100
|
|
Subject: Don't mock list subclass
|
|
|
|
---
|
|
tests/unit/ec2/test_volume.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/tests/unit/ec2/test_volume.py b/tests/unit/ec2/test_volume.py
|
|
index 81d7f55..d4d8e4f 100644
|
|
--- a/tests/unit/ec2/test_volume.py
|
|
+++ b/tests/unit/ec2/test_volume.py
|
|
@@ -55,7 +55,7 @@ class VolumeTests(unittest.TestCase):
|
|
@mock.patch("boto.resultset.ResultSet")
|
|
def test_startElement_with_name_tagSet_calls_ResultSet(self, ResultSet, startElement):
|
|
startElement.return_value = None
|
|
- result_set = mock.Mock(ResultSet([("item", Tag)]))
|
|
+ result_set = ResultSet([("item", Tag)])
|
|
volume = Volume()
|
|
volume.tags = result_set
|
|
retval = volume.startElement("tagSet", None, None)
|