summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2018-01-12 05:53:49 (GMT)
committerGitHub <noreply@github.com>2018-01-12 05:53:49 (GMT)
commit02556fbade5e1e864dd09d5768a8dbbf5b3a0dac (patch)
tree14aa995e97221042d271e1c431397e7bb9dee2b0 /Lib/test/test_collections.py
parent782d6fe4434381c50e0c7ec94a1ef9c6debbc333 (diff)
downloadcpython-02556fbade5e1e864dd09d5768a8dbbf5b3a0dac.zip
cpython-02556fbade5e1e864dd09d5768a8dbbf5b3a0dac.tar.gz
cpython-02556fbade5e1e864dd09d5768a8dbbf5b3a0dac.tar.bz2
bpo-32467: Let collections.abc.ValuesView inherit from Collection (#5152)
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r--Lib/test/test_collections.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index cb66235..a55239e 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -843,13 +843,13 @@ class TestOneTrickPonyABCs(ABCTestCase):
self.assertFalse(issubclass(type(x), Collection), repr(type(x)))
# Check some non-collection iterables
non_col_iterables = [_test_gen(), iter(b''), iter(bytearray()),
- (x for x in []), dict().values()]
+ (x for x in [])]
for x in non_col_iterables:
self.assertNotIsInstance(x, Collection)
self.assertFalse(issubclass(type(x), Collection), repr(type(x)))
# Check some collections
samples = [set(), frozenset(), dict(), bytes(), str(), tuple(),
- list(), dict().keys(), dict().items()]
+ list(), dict().keys(), dict().items(), dict().values()]
for x in samples:
self.assertIsInstance(x, Collection)
self.assertTrue(issubclass(type(x), Collection), repr(type(x)))