(self)
| 141 | self.assertRaises(TypeError, defaultdict, {}) |
| 142 | |
| 143 | def test_pickling(self): |
| 144 | d = defaultdict(int) |
| 145 | d[1] |
| 146 | for proto in range(pickle.HIGHEST_PROTOCOL + 1): |
| 147 | s = pickle.dumps(d, proto) |
| 148 | o = pickle.loads(s) |
| 149 | self.assertEqual(d, o) |
| 150 | |
| 151 | def test_union(self): |
| 152 | i = defaultdict(int, {1: 1, 2: 2}) |
nothing calls this directly
no test coverage detected