From 2ec8cbc75fb6482aa00f998d53a39a812d1e34bc Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 25 Feb 2011 14:05:42 +0000 Subject: [PATCH] rewrite with assertIs --- Lib/test/list_tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index 89ea40f7800..0c656fd098b 100644 --- a/Lib/test/list_tests.py +++ b/Lib/test/list_tests.py @@ -461,9 +461,8 @@ def test_copy(self): # 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)