Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_future.py @ 24442:226ba34bd998 legacy-trunk
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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Tue, 30 Jul 2002 23:27:12 +0000 |
| parents | aa0d2d51fbde |
| children | 47eaa38b29cb |
line wrap: on
line diff
--- a/Lib/test/test_future.py Tue Jul 30 20:19:58 2002 +0000 +++ b/Lib/test/test_future.py Tue Jul 30 23:27:12 2002 +0000 @@ -12,36 +12,36 @@ # The first two tests should work unload('test_future1') -import test_future1 +from test import test_future1 unload('test_future2') -import test_future2 +from test import test_future2 unload('test_future3') -import test_future3 +from test import test_future3 # The remaining tests should fail try: - import badsyntax_future3 + from test import badsyntax_future3 except SyntaxError, msg: check_error_location(str(msg)) try: - import badsyntax_future4 + from test import badsyntax_future4 except SyntaxError, msg: check_error_location(str(msg)) try: - import badsyntax_future5 + from test import badsyntax_future5 except SyntaxError, msg: check_error_location(str(msg)) try: - import badsyntax_future6 + from test import badsyntax_future6 except SyntaxError, msg: check_error_location(str(msg)) try: - import badsyntax_future7 + from test import badsyntax_future7 except SyntaxError, msg: check_error_location(str(msg))
