Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 13c94747c74437e594b7fc242ff7da668e81887c authored by Ned Deily on 15 August 2020, 05:20:16 UTC
3.7.9
Tip revision: 13c9474
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