[pypy-svn] r16664 - pypy/release/0.7.x/lib-python/modified-2.4.1/test

arigo at codespeak.net arigo at codespeak.net
Fri Aug 26 18:51:38 CEST 2005


Author: arigo
Date: Fri Aug 26 18:51:35 2005
New Revision: 16664

Modified:
   pypy/release/0.7.x/lib-python/modified-2.4.1/test/test_copy.py
Log:
Removed RuntimeError checks that have nothing to do here any more.
If necessary, added some structure checks instead.


Modified: pypy/release/0.7.x/lib-python/modified-2.4.1/test/test_copy.py
==============================================================================
--- pypy/release/0.7.x/lib-python/modified-2.4.1/test/test_copy.py	(original)
+++ pypy/release/0.7.x/lib-python/modified-2.4.1/test/test_copy.py	Fri Aug 26 18:51:35 2005
@@ -374,7 +374,6 @@
         x = []
         x.append(x)
         y = copy.deepcopy(x)
-        self.assertRaises(RuntimeError, cmp, y, x)
         self.assert_(y is not x)
         self.assert_(y[0] is y)
         self.assertEqual(len(y), 1)
@@ -390,9 +389,11 @@
         x = ([],)
         x[0].append(x)
         y = copy.deepcopy(x)
-        self.assertRaises(RuntimeError, cmp, y, x)
         self.assert_(y is not x)
-        self.assert_(y[0] is not x[0])
+        self.assertEqual(type(y), tuple)
+        self.assertEqual(len(y), 1)
+        self.assertEqual(type(y[0]), list)
+        self.assertEqual(len(y[0]), 1)
         self.assert_(y[0][0] is y)
 
     def test_deepcopy_dict(self):
@@ -406,7 +407,6 @@
         x = {}
         x['foo'] = x
         y = copy.deepcopy(x)
-        self.assertRaises(RuntimeError, cmp, y, x)
         self.assert_(y is not x)
         self.assert_(y['foo'] is y)
         self.assertEqual(len(y), 1)



More information about the Pypy-commit mailing list