mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Reverting my previous commit.
Something went horribly wrong when I was doing `hg rebase`.
This commit is contained in:
parent
802d45b660
commit
7aa5341164
19 changed files with 787 additions and 1101 deletions
|
@ -1,4 +1,3 @@
|
|||
import collections
|
||||
import unittest
|
||||
|
||||
class DictSetTest(unittest.TestCase):
|
||||
|
@ -198,27 +197,6 @@ class DictSetTest(unittest.TestCase):
|
|||
d[42] = d.values()
|
||||
self.assertRaises(RuntimeError, repr, d)
|
||||
|
||||
def test_abc_registry(self):
|
||||
d = dict(a=1)
|
||||
|
||||
self.assertIsInstance(d.keys(), collections.KeysView)
|
||||
self.assertIsInstance(d.keys(), collections.MappingView)
|
||||
self.assertIsInstance(d.keys(), collections.Set)
|
||||
self.assertIsInstance(d.keys(), collections.Sized)
|
||||
self.assertIsInstance(d.keys(), collections.Iterable)
|
||||
self.assertIsInstance(d.keys(), collections.Container)
|
||||
|
||||
self.assertIsInstance(d.values(), collections.ValuesView)
|
||||
self.assertIsInstance(d.values(), collections.MappingView)
|
||||
self.assertIsInstance(d.values(), collections.Sized)
|
||||
|
||||
self.assertIsInstance(d.items(), collections.ItemsView)
|
||||
self.assertIsInstance(d.items(), collections.MappingView)
|
||||
self.assertIsInstance(d.items(), collections.Set)
|
||||
self.assertIsInstance(d.items(), collections.Sized)
|
||||
self.assertIsInstance(d.items(), collections.Iterable)
|
||||
self.assertIsInstance(d.items(), collections.Container)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue