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