mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#2621 rename test.test_support to test.support
This commit is contained in:
parent
6a654814ea
commit
ee8712cda4
358 changed files with 1308 additions and 1307 deletions
|
@ -12,7 +12,7 @@ the example. It should be ignored:
|
|||
|
||||
"""
|
||||
|
||||
from test import test_support
|
||||
from test import support
|
||||
|
||||
class C(object):
|
||||
"""Class C.
|
||||
|
@ -107,9 +107,9 @@ class C(object):
|
|||
def test_main():
|
||||
from test import test_doctest2
|
||||
EXPECTED = 19
|
||||
f, t = test_support.run_doctest(test_doctest2)
|
||||
f, t = support.run_doctest(test_doctest2)
|
||||
if t != EXPECTED:
|
||||
raise test_support.TestFailed("expected %d tests to run, not %d" %
|
||||
raise support.TestFailed("expected %d tests to run, not %d" %
|
||||
(EXPECTED, t))
|
||||
|
||||
# Pollute the namespace with a bunch of imported functions and classes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue