summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-02-25 14:05:42 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-02-25 14:05:42 (GMT)
commit2ec8cbc75fb6482aa00f998d53a39a812d1e34bc (patch)
tree6c927f998ebf765cc5c06362e457ad86bc8552f9 /Lib
parent83a0efd303790e33110625af49d7713ea0bc4c5c (diff)
downloadcpython-2ec8cbc75fb6482aa00f998d53a39a812d1e34bc.zip
cpython-2ec8cbc75fb6482aa00f998d53a39a812d1e34bc.tar.gz
cpython-2ec8cbc75fb6482aa00f998d53a39a812d1e34bc.tar.bz2
rewrite with assertIs
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/list_tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index 89ea40f..0c656fd 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -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)