mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #9517: Move script_helper to the support package.
Patch by Christie Wilson.
This commit is contained in:
parent
025e9ebd0a
commit
ce643913a9
45 changed files with 115 additions and 102 deletions
|
@ -2729,8 +2729,8 @@ With those preliminaries out of the way, we'll start with a file with two
|
|||
simple tests and no errors. We'll run both the unadorned doctest command, and
|
||||
the verbose version, and then check the output:
|
||||
|
||||
>>> from test import script_helper
|
||||
>>> with script_helper.temp_dir() as tmpdir:
|
||||
>>> from test.support import script_helper, temp_dir
|
||||
>>> with temp_dir() as tmpdir:
|
||||
... fn = os.path.join(tmpdir, 'myfile.doc')
|
||||
... with open(fn, 'w') as f:
|
||||
... _ = f.write('This is a very simple test file.\n')
|
||||
|
@ -2780,8 +2780,8 @@ ability to process more than one file on the command line and, since the second
|
|||
file ends in '.py', its handling of python module files (as opposed to straight
|
||||
text files).
|
||||
|
||||
>>> from test import script_helper
|
||||
>>> with script_helper.temp_dir() as tmpdir:
|
||||
>>> from test.support import script_helper, temp_dir
|
||||
>>> with temp_dir() as tmpdir:
|
||||
... fn = os.path.join(tmpdir, 'myfile.doc')
|
||||
... with open(fn, 'w') as f:
|
||||
... _ = f.write('This is another simple test file.\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue