()
| 2305 | |
| 2306 | |
| 2307 | def test_pickle_hastraits(): |
| 2308 | c = Pickleable() |
| 2309 | for protocol in range(pickle.HIGHEST_PROTOCOL + 1): |
| 2310 | p = pickle.dumps(c, protocol) |
| 2311 | c2 = pickle.loads(p) |
| 2312 | assert c2.i == c.i |
| 2313 | assert c2.j == c.j |
| 2314 | |
| 2315 | c.i = 5 |
| 2316 | for protocol in range(pickle.HIGHEST_PROTOCOL + 1): |
| 2317 | p = pickle.dumps(c, protocol) |
| 2318 | c2 = pickle.loads(p) |
| 2319 | assert c2.i == c.i |
| 2320 | assert c2.j == c.j |
| 2321 | |
| 2322 | |
| 2323 | def test_hold_trait_notifications(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…