Logo
Explore Help
Sign In
greg/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
3203efb55fde14c3f567f6864dab1454155d1dcb
cpython/Lib/test/test_longexp.py

15 lines
318 B
Python
Raw Normal View History

SF patch #736962: Port tests to unittest (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
2003-08-30 22:54:55 +00:00
import unittest
from test import test_support
OS/2 EMX port Library and regression test changes: Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
2002-02-24 05:32:32 +00:00
SF patch #736962: Port tests to unittest (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
2003-08-30 22:54:55 +00:00
class LongExpText(unittest.TestCase):
def test_longexp(self):
REPS = 65580
l = eval("[" + "2," * REPS + "]")
self.assertEqual(len(l), REPS)
verify that Python raises SyntaxError for long and deeply-nested expressions
2000-06-20 19:13:27 +00:00
SF patch #736962: Port tests to unittest (Contributed by Walter Dörwald). * Convert three test modules to unittest format. * Expanded coverage in test_structseq.py. * Raymond added a new test in test_sets.py
2003-08-30 22:54:55 +00:00
def test_main():
test_support.run_unittest(LongExpText)
if __name__=="__main__":
test_main()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 3182ms Template: 36ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API