Logo
Explore Help
Sign In
1berry/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Packages Projects Releases Wiki Activity
cpython/Lib/test/test_longexp.py

11 lines
233 B
Python
Raw Permalink 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
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
Issue #21741: Update 147 test modules to use test discovery. I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
2015-04-13 15:00:43 -05:00
if __name__ == "__main__":
unittest.main()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 9524ms Template: 4ms
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