[Python-checkins] r88576 - python/branches/py3k/Lib/test/list_tests.py

benjamin.peterson python-checkins at python.org
Fri Feb 25 15:05:48 CET 2011


Author: benjamin.peterson
Date: Fri Feb 25 15:05:42 2011
New Revision: 88576

Log:
rewrite with assertIs

Modified:
   python/branches/py3k/Lib/test/list_tests.py

Modified: python/branches/py3k/Lib/test/list_tests.py
==============================================================================
--- python/branches/py3k/Lib/test/list_tests.py	(original)
+++ python/branches/py3k/Lib/test/list_tests.py	Fri Feb 25 15:05:42 2011
@@ -461,9 +461,8 @@
         # 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)
 


More information about the Python-checkins mailing list