mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
1bc894b133
commit
408b6d34de
46 changed files with 79 additions and 60 deletions
|
@ -1,5 +1,8 @@
|
|||
"""Supporting definitions for the Python regression test."""
|
||||
|
||||
if __name__ != 'test.test_support':
|
||||
raise ImportError, 'test_support must be imported from the test package'
|
||||
|
||||
import sys
|
||||
|
||||
class Error(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue