diff options
author | Raymond Hettinger <python@rcn.com> | 2014-11-23 06:14:41 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-11-23 06:14:41 (GMT) |
commit | bb6c0aaebfbeb9ab13886e261df904c9c12853b9 (patch) | |
tree | aa283779a1ce070feb4c59a8c5cf624d3830059c /Lib/test/test_collections.py | |
parent | 828d932a2c4da5eb7c05e85dfe51f5f6db68084d (diff) | |
download | cpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.zip cpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.tar.gz cpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.tar.bz2 |
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r-- | Lib/test/test_collections.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py index e948106..7b46475 100644 --- a/Lib/test/test_collections.py +++ b/Lib/test/test_collections.py @@ -511,7 +511,7 @@ class TestOneTrickPonyABCs(ABCTestCase): class NextOnly: def __next__(self): yield 1 - raise StopIteration + return self.assertNotIsInstance(NextOnly(), Iterator) def test_Sized(self): |