##// END OF EJS Templates
py3: fully port doctest to py3
Manuel Jacob -
r52265:617af109 default
parent child Browse files
Show More
@@ -195,9 +195,8 b' def populateextmods(localmods):'
195 def list_stdlib_modules():
195 def list_stdlib_modules():
196 """List the modules present in the stdlib.
196 """List the modules present in the stdlib.
197
197
198 >>> py3 = sys.version_info[0] >= 3
199 >>> mods = set(list_stdlib_modules())
198 >>> mods = set(list_stdlib_modules())
200 >>> 'BaseHTTPServer' in mods or py3
199 >>> 'http' in mods
201 True
200 True
202
201
203 os.path isn't really a module, so it's missing:
202 os.path isn't really a module, so it's missing:
@@ -214,7 +213,7 b' def list_stdlib_modules():'
214 >>> 'collections' in mods
213 >>> 'collections' in mods
215 True
214 True
216
215
217 >>> 'cStringIO' in mods or py3
216 >>> 'array' in mods
218 True
217 True
219
218
220 >>> 'cffi' in mods
219 >>> 'cffi' in mods
General Comments 0
You need to be logged in to leave comments. Login now