(self)
| 862 | self.assertRaises(TypeError, pickle.dumps, d, proto) |
| 863 | |
| 864 | def test_weakref(self): |
| 865 | d = deque('gallahad') |
| 866 | p = weakref.proxy(d) |
| 867 | self.assertEqual(str(p), str(d)) |
| 868 | d = None |
| 869 | support.gc_collect() # For PyPy or other GCs. |
| 870 | self.assertRaises(ReferenceError, str, p) |
| 871 | |
| 872 | def test_strange_subclass(self): |
| 873 | class X(deque): |
nothing calls this directly
no test coverage detected