aboutsummaryrefslogtreecommitdiff
path: root/test/test_collections.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_collections.py')
-rw-r--r--test/test_collections.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_collections.py b/test/test_collections.py
index 098b31a..b44c58a 100644
--- a/test/test_collections.py
+++ b/test/test_collections.py
@@ -119,9 +119,7 @@ class TestLRUContainer(unittest.TestCase):
def test_iter(self):
d = Container()
- with self.assertRaises(NotImplementedError):
- for i in d:
- self.fail("Iteration shouldn't be implemented.")
+ self.assertRaises(NotImplementedError, d.__iter__)
if __name__ == '__main__':
unittest.main()