[Python-checkins] r75471 - in python/branches/py3k: Lib/test/test_builtin.py
mark.dickinson
python-checkins at python.org
Sat Oct 17 23:48:16 CEST 2009
Author: mark.dickinson
Date: Sat Oct 17 23:48:16 2009
New Revision: 75471
Log:
Merged revisions 75470 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75470 | mark.dickinson | 2009-10-17 22:46:32 +0100 (Sat, 17 Oct 2009) | 1 line
Protect against attempts to replace PyNumber_Add with PyNumber_InPlaceAdd in builtin sum
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_builtin.py
Modified: python/branches/py3k/Lib/test/test_builtin.py
==============================================================================
--- python/branches/py3k/Lib/test/test_builtin.py (original)
+++ python/branches/py3k/Lib/test/test_builtin.py Sat Oct 17 23:48:16 2009
@@ -1151,6 +1151,10 @@
raise ValueError
self.assertRaises(ValueError, sum, BadSeq())
+ empty = []
+ sum(([x] for x in range(10)), empty)
+ self.assertEqual(empty, [])
+
def test_type(self):
self.assertEqual(type(''), type('123'))
self.assertNotEqual(type(''), type(()))
More information about the Python-checkins
mailing list