diff options
author | Barry Warsaw <barry@python.org> | 2002-07-30 23:27:12 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-07-30 23:27:12 (GMT) |
commit | 408b6d34de2b1a6ba690557def435adce9314184 (patch) | |
tree | 9d4e40110765646f7033a740641ef67750d17b91 /Lib/test/test_future.py | |
parent | 1bc894b1333ff0fd0d8b175f6748798e5fd08aed (diff) | |
download | cpython-408b6d34de2b1a6ba690557def435adce9314184.zip cpython-408b6d34de2b1a6ba690557def435adce9314184.tar.gz cpython-408b6d34de2b1a6ba690557def435adce9314184.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r-- | Lib/test/test_future.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py index 62bc857..12813d4 100644 --- a/Lib/test/test_future.py +++ b/Lib/test/test_future.py @@ -12,36 +12,36 @@ def check_error_location(msg): # 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)) |