diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-07-03 01:10:11 -0400 |
commit | bb215e23004af8e8105fae4e132a63b0c25ea47c (patch) | |
tree | 1e0023f5f39b23e58178ffeb992ac5e2264ff1e9 /Lib/test/test_copy.py | |
parent | 1c5e5a89b4bc1a7b9dbd0375fbd76dfdadcb8605 (diff) | |
parent | f488fb422a641aa7c38eb63c09f459e4baff7bc4 (diff) | |
download | cpython-git-bb215e23004af8e8105fae4e132a63b0c25ea47c.tar.gz |
Merge 3.5 (Issue #19235)
Diffstat (limited to 'Lib/test/test_copy.py')
-rw-r--r-- | Lib/test/test_copy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_copy.py b/Lib/test/test_copy.py index 4c197467e9..b9eadddbf2 100644 --- a/Lib/test/test_copy.py +++ b/Lib/test/test_copy.py @@ -327,7 +327,7 @@ class TestCopy(unittest.TestCase): x.append(x) y = copy.deepcopy(x) for op in comparisons: - self.assertRaises(RuntimeError, op, y, x) + self.assertRaises(RecursionError, op, y, x) self.assertIsNot(y, x) self.assertIs(y[0], y) self.assertEqual(len(y), 1) @@ -354,7 +354,7 @@ class TestCopy(unittest.TestCase): x[0].append(x) y = copy.deepcopy(x) for op in comparisons: - self.assertRaises(RuntimeError, op, y, x) + self.assertRaises(RecursionError, op, y, x) self.assertIsNot(y, x) self.assertIsNot(y[0], x[0]) self.assertIs(y[0][0], y) @@ -373,7 +373,7 @@ class TestCopy(unittest.TestCase): for op in order_comparisons: self.assertRaises(TypeError, op, y, x) for op in equality_comparisons: - self.assertRaises(RuntimeError, op, y, x) + self.assertRaises(RecursionError, op, y, x) self.assertIsNot(y, x) self.assertIs(y['foo'], y) self.assertEqual(len(y), 1) |