Commit bf67ba8f authored by Benjamin Peterson's avatar Benjamin Peterson

only run doctests when __doc__ is around

parent ae1d1857
......@@ -90,9 +90,10 @@ class CookieTests(unittest.TestCase):
def test_main():
run_unittest(CookieTests)
with check_warnings(('.+Cookie class is insecure; do not use it',
DeprecationWarning)):
run_doctest(Cookie)
if Cookie.__doc__ is not None:
with check_warnings(('.+Cookie class is insecure; do not use it',
DeprecationWarning)):
run_doctest(Cookie)
if __name__ == '__main__':
test_main()
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