Florent Xicluna
6257a7bbb2
Replace catch_warnings with check_warnings when it makes sense. Use assertRaises context manager to simplify some tests.
2010-03-31 22:01:03 +00:00
Georg Brandl
c6fdec6d7e
Convert test_global, test_scope and test_grammar to unittest.
...
I tried to enclose all tests which must be run at the toplevel
(instead of inside a method) in exec statements.
2006-10-28 13:10:17 +00:00
Barry Warsaw
408b6d34de
Complete the absolute import patch for the test suite. All relative
...
imports of test modules now import from the test package. Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.). Also did a general
code cleanup to remove all "from test.test_support import *"'s. Other
from...import *'s weren't changed.
2002-07-30 23:27:12 +00:00
Tim Peters
fc35de409b
test_global was broken by some recent checkin. Repairing.
2001-03-02 01:48:16 +00:00
Jeremy Hylton
2922ea8235
Add test case for global stmt at module level.
...
Fix test_grammar so that it ignores warning about global stmt at
module level in exec.
2001-02-28 23:49:19 +00:00
Jeremy Hylton
150a6640f5
Fix filter for SyntaxErrors
2001-02-28 22:50:15 +00:00
Tim Peters
85ba673b0a
Whitespace normalization.
2001-02-28 08:26:44 +00:00
Jeremy Hylton
8e43cd7929
verify that warnings are issued for bogus uses of global
2001-02-28 01:51:01 +00:00