aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_longexp.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_longexp.py')
-rw-r--r--Lib/test/test_longexp.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/Lib/test/test_longexp.py b/Lib/test/test_longexp.py
index c2c26125c86..dd222a19bff 100644
--- a/Lib/test/test_longexp.py
+++ b/Lib/test/test_longexp.py
@@ -1,5 +1,14 @@
+import unittest
+from test import test_support
-REPS = 65580
+class LongExpText(unittest.TestCase):
+ def test_longexp(self):
+ REPS = 65580
+ l = eval("[" + "2," * REPS + "]")
+ self.assertEqual(len(l), REPS)
-l = eval("[" + "2," * REPS + "]")
-print len(l)
+def test_main():
+ test_support.run_unittest(LongExpText)
+
+if __name__=="__main__":
+ test_main()