Kaydet (Commit) 2ec8cbc7 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

rewrite with assertIs

üst 83a0efd3
......@@ -461,9 +461,8 @@ class CommonTest(seq_tests.CommonTest):
# test that it's a shallow, not a deep copy
u = self.type2test([1, 2, [3, 4], 5])
v = u.copy()
v[2].append(666)
self.assertEqual(u, [1, 2, [3, 4, 666], 5])
self.assertEqual(u, v)
self.assertIs(v[3], u[3])
self.assertRaises(TypeError, u.copy, None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment