Commit c289fa75 authored by Tim Peters's avatar Tim Peters

Fudge - http.client doesn't exist in 2.7. Use Queue.Empty instead.

parent 0ee9baa8
...@@ -1024,10 +1024,10 @@ IGNORE_EXCEPTION_DETAIL to normalize the modules between Python 2 and 3: ...@@ -1024,10 +1024,10 @@ IGNORE_EXCEPTION_DETAIL to normalize the modules between Python 2 and 3:
>>> def f(x): >>> def f(x):
... r''' ... r'''
... >>> from http.client import HTTPException ... >>> from Queue import Empty
... >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL ... >>> raise Empty() #doctest: +IGNORE_EXCEPTION_DETAIL
... Traceback (most recent call last): ... Traceback (most recent call last):
... foo.bar.HTTPException ... foo.bar.Empty
... ''' ... '''
>>> test = doctest.DocTestFinder().find(f)[0] >>> test = doctest.DocTestFinder().find(f)[0]
>>> doctest.DocTestRunner(verbose=False).run(test) >>> doctest.DocTestRunner(verbose=False).run(test)
...@@ -1037,10 +1037,10 @@ Note that a trailing colon doesn't matter either: ...@@ -1037,10 +1037,10 @@ Note that a trailing colon doesn't matter either:
>>> def f(x): >>> def f(x):
... r''' ... r'''
... >>> from http.client import HTTPException ... >>> from Queue import Empty
... >>> raise HTTPException() #doctest: +IGNORE_EXCEPTION_DETAIL ... >>> raise Empty() #doctest: +IGNORE_EXCEPTION_DETAIL
... Traceback (most recent call last): ... Traceback (most recent call last):
... foo.bar.HTTPException: ... foo.bar.Empty:
... ''' ... '''
>>> test = doctest.DocTestFinder().find(f)[0] >>> test = doctest.DocTestFinder().find(f)[0]
>>> doctest.DocTestRunner(verbose=False).run(test) >>> doctest.DocTestRunner(verbose=False).run(test)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment