summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler.py
Commit message (Collapse)AuthorAgeFilesLines
* Backport r45774:Neal Norwitz2006-04-291-0/+1
| | | | | | | Try to really fix the slow buildbots this time. Printing to stdout, doesn't mean the data was actually written. It depends on the buffering, so we need to flush. This will hopefully really fix the buildbots getting killed due to no output on the slow bots.
* Backport 45338:Neal Norwitz2006-04-131-2/+11
| | | | | | | | test_compile can be really long if we are using -u compiler. This may be causing the debian sparc buildbot to fail. Print a little message to let the user ^w buildbot know it's still thinking. We may want to adjust the time period which is currently 5 minutes.
* test for fixedness of bug #1057835.Michael W. Hudson2004-11-081-0/+2
| | | | (thanks to Raymond for the prod).
* Open source files in universal newlines mode.Michael W. Hudson2004-10-111-1/+1
|
* Whitespace normalization.Tim Peters2004-09-121-4/+4
|
* compiler.transformer: correct lineno attribute when possibleJeremy Hylton2004-09-071-0/+59
| | | | | | | | | | | | | | | | SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception.
* Change the strategy for coping with time intensive tests fromRaymond Hettinger2004-09-041-1/+5
| | | | | | | | "all or none" to "all or some". This provides much greater test coverage without eating much time. It also makes it more likely that routine regression testing will unearth bugs.
* Tell unittest that source files with "badsyntax" in their names shouldTim Peters2004-08-081-1/+5
| | | | | raise SyntaxError. test_compiler passes now on WinXP, at least in a release-build non-O run.
* Renamed locals to better reflect their meanings.Tim Peters2004-08-081-6/+6
|
* In verbose mode, display the name of each file before trying to compileTim Peters2004-08-081-1/+4
| | | | | it. Else when this fails, there's no way to tell which file it was chewing on.
* Whitespace normalization.Tim Peters2004-08-081-3/+0
|
* Add a trivial test for the compiler package, guarded by compiler resource.Jeremy Hylton2004-08-071-0/+34
This test is insanely slow, so it requires a resource. On my machine, it also appears to dump core. I think the problem is a stack overflow, but haven't been able to confirm.