summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_collections.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-16 17:19:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-16 17:19:02 (GMT)
commit5bb8b9134b0bb35a73c76657f41cafa3e4361fcd (patch)
tree5755343717913be71dc48d94db681d1a21ff31d2 /Lib/test/test_collections.py
parent14d8b9693be235240ab2dcac3b43a4a7c30483bc (diff)
downloadcpython-5bb8b9134b0bb35a73c76657f41cafa3e4361fcd.zip
cpython-5bb8b9134b0bb35a73c76657f41cafa3e4361fcd.tar.gz
cpython-5bb8b9134b0bb35a73c76657f41cafa3e4361fcd.tar.bz2
Issue #18896: Python function can now have more than 255 parameters.
collections.namedtuple() now supports tuples with more than 255 elements.
Diffstat (limited to 'Lib/test/test_collections.py')
-rw-r--r--Lib/test/test_collections.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_collections.py b/Lib/test/test_collections.py
index 87454cc..76c7139 100644
--- a/Lib/test/test_collections.py
+++ b/Lib/test/test_collections.py
@@ -319,8 +319,7 @@ class TestNamedTuple(unittest.TestCase):
self.assertEqual(Dot(1)._replace(d=999), (999,))
self.assertEqual(Dot(1)._fields, ('d',))
- # n = 5000
- n = 254 # SyntaxError: more than 255 arguments:
+ n = 5000
names = list(set(''.join([choice(string.ascii_letters)
for j in range(10)]) for i in range(n)))
n = len(names)