Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 439e17f

Browse files
committed
update doctests
1 parent 199b78d commit 439e17f

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

Doc/library/email.parser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ in the top-level :mod:`email` package namespace.
251251
Here's an example of how you might use this at an interactive Python prompt::
252252

253253
>>> import email
254-
>>> msg = email.message_from_string(myString)
254+
>>> msg = email.message_from_string(myString) # doctest: +SKIP
255255

256256

257257
Additional notes

Doc/library/functions.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -305,17 +305,18 @@ are always available. They are listed here in alphabetical order.
305305

306306
>>> import struct
307307
>>> dir() # show the names in the module namespace
308-
['__builtins__', '__doc__', '__name__', 'struct']
309-
>>> dir(struct) # show the names in the struct module
310-
['Struct', '__builtins__', '__doc__', '__file__', '__name__',
311-
'__package__', '_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
308+
['__builtins__', '__name__', 'struct']
309+
>>> dir(struct) # show the names in the struct module # doctest: +SKIP
310+
['Struct', '__all__', '__builtins__', '__cached__', '__doc__', '__file__',
311+
'__initializing__', '__loader__', '__name__', '__package__',
312+
'_clearcache', 'calcsize', 'error', 'pack', 'pack_into',
312313
'unpack', 'unpack_from']
313314
>>> class Shape(object):
314-
def __dir__(self):
315-
return ['area', 'perimeter', 'location']
315+
... def __dir__(self):
316+
... return ['area', 'perimeter', 'location']
316317
>>> s = Shape()
317318
>>> dir(s)
318-
['area', 'perimeter', 'location']
319+
['area', 'location', 'perimeter']
319320

320321
.. note::
321322

@@ -614,9 +615,9 @@ are always available. They are listed here in alphabetical order.
614615
to a string (stripping a trailing newline), and returns that. When EOF is
615616
read, :exc:`EOFError` is raised. Example::
616617

617-
>>> s = input('--> ')
618+
>>> s = input('--> ') # doctest: +SKIP
618619
--> Monty Python's Flying Circus
619-
>>> s
620+
>>> s # doctest: +SKIP
620621
"Monty Python's Flying Circus"
621622

622623
If the :mod:`readline` module was loaded, then :func:`input` will use it

0 commit comments

Comments
 (0)