summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compiler.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.