Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 34214de6ab9ebcb5d63d0e116800d5ee535a38cb authored by Ɓukasz Langa on 01 October 2019, 12:58:26 UTC
v3.8.0rc1
Tip revision: 34214de
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