Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 6c06ef7dc310039361f931162857003548658cde authored by Ned Deily on 13 October 2018, 07:01:13 UTC
3.7.1rc2
Tip revision: 6c06ef7
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