Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
45aa7cc7
Commit
45aa7cc7
authored
Feb 05, 2011
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Soften wording on doctest.
parent
ce71ab2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
Doc/howto/pyporting.rst
Doc/howto/pyporting.rst
+8
-4
No files found.
Doc/howto/pyporting.rst
View file @
45aa7cc7
...
...
@@ -483,10 +483,14 @@ Been deprecated for a while, but Python 3 finally drops support for
friends.
Stop Using :mod:`doctest`
'''''''''''''''''''''''''
While 2to3 tries to port doctests properly, it's a rather tough thing to do. It
is probably best to simply convert your critical doctests to :mod:`unittest`.
Updating doctests
'''''''''''''''''
2to3_ will attempt to generate fixes for doctests that it comes across. It's
not perfect, though. If you wrote a monolithic set of doctests (e.g., a single
docstring containing all of your doctests), you should at least consider
breaking the doctests up into smaller pieces to make it more manageable to fix.
Otherwise it might very well be worth your time and effort to port your tests
to :mod:`unittest`.
Eliminate ``-3`` Warnings
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment