Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: bc1c8af8ef2563802767404c78c8ec6d6a967897 authored by Ɓukasz Langa on 27 April 2020, 20:44:04 UTC
Python 3.9.0a6
Tip revision: bc1c8af
test_longexp.py
import unittest

class LongExpText(unittest.TestCase):
    def test_longexp(self):
        REPS = 65580
        l = eval("[" + "2," * REPS + "]")
        self.assertEqual(len(l), REPS)

if __name__ == "__main__":
    unittest.main()
back to top