Jeremy Hylton
954aed8c8d
Add test for eval() w/ free variables.
...
Related to SF bug #505315
2002-04-20 04:51:39 +00:00
Jeremy Hylton
3095a4c228
Update output generated by test_scope
2001-12-13 19:47:51 +00:00
Jeremy Hylton
cf672f15e0
Add test for local assigned to only in a nested list comp
2001-10-18 16:23:11 +00:00
Jeremy Hylton
5121e7de11
Fix for SF bug [ #443866 ] Evaluating func_code causing core dump
...
Add test that calls eval with a code object that has free variables.
2001-07-30 21:55:29 +00:00
Jeremy Hylton
4c889011db
SF patch 419176 from MvL; fixed bug 418977
...
Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
2001-05-08 04:08:59 +00:00
Jeremy Hylton
ddc4fd03b1
Fix 2.1 nested scopes crash reported by Evan Simpson
...
The new test case demonstrates the bug. Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.
XXX Add new assertion that will catch this bug.
2001-04-27 02:29:40 +00:00
Jeremy Hylton
5c7a2513ec
Add tests for recent changes:
...
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
2001-03-21 16:44:39 +00:00
Jeremy Hylton
5b44a67bdb
Add test to verify that nested functions with free variables don't
...
cause the free variables to leak.
2001-03-13 02:01:12 +00:00
Guido van Rossum
9aa643cf69
Test interaction of global and nested scopes -- thanks to Samuele Pedroni.
2001-03-01 20:35:45 +00:00
Jeremy Hylton
97a01674b2
update test cases for recent compiler changes: exec/import * in nested
...
functinos and cell vars with */** parameters
2001-02-09 22:56:46 +00:00
Jeremy Hylton
de6024872a
Fix test 9 (caught by ?!ng)
...
Add tests for unbound locals (Nick Mathewson)
2001-02-05 17:35:20 +00:00
Jeremy Hylton
4588c78faf
PEP 227 implementation
...
New tests cases for nested scopes.
2001-01-25 20:11:23 +00:00