[pypy-svn] pypy collections-module: Generalize this test. Now test_deque passes.

arigo commits-noreply at bitbucket.org
Wed Feb 16 11:03:58 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: collections-module
Changeset: r42020:9ac38af09338
Date: 2011-02-16 10:59 +0100
http://bitbucket.org/pypy/pypy/changeset/9ac38af09338/

Log:	Generalize this test. Now test_deque passes.

diff --git a/lib-python/modified-2.7.0/test/test_deque.py b/lib-python/modified-2.7.0/test/test_deque.py
--- a/lib-python/modified-2.7.0/test/test_deque.py
+++ b/lib-python/modified-2.7.0/test/test_deque.py
@@ -109,7 +109,7 @@
         self.assertEqual(deque('abc', maxlen=4).maxlen, 4)
         self.assertEqual(deque('abc', maxlen=2).maxlen, 2)
         self.assertEqual(deque('abc', maxlen=0).maxlen, 0)
-        with self.assertRaises(AttributeError):
+        with self.assertRaises((AttributeError, TypeError)):
             d = deque('abc')
             d.maxlen = 10
 


More information about the Pypy-commit mailing list