summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pydoc.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-06-08 03:17:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-06-08 03:17:29 (GMT)
commiteac219436c0503968b47b7e316a2c1a72ed823f7 (patch)
treea31c889996c183349d837dd9f398d0d7a233a537 /Lib/test/test_pydoc.py
parent10e847bbc7427e85f38191298275eaf14be625e5 (diff)
parent159824ea2a1872dadef69a229fb294c571d2ac73 (diff)
downloadcpython-eac219436c0503968b47b7e316a2c1a72ed823f7.zip
cpython-eac219436c0503968b47b7e316a2c1a72ed823f7.tar.gz
cpython-eac219436c0503968b47b7e316a2c1a72ed823f7.tar.bz2
merge 3.4 (#11709)
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r--Lib/test/test_pydoc.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py
index 188c4c2..542b433 100644
--- a/Lib/test/test_pydoc.py
+++ b/Lib/test/test_pydoc.py
@@ -446,6 +446,14 @@ class PydocDocTest(unittest.TestCase):
result, doc_loc = get_pydoc_text(xml.etree)
self.assertEqual(doc_loc, "", "MODULE DOCS incorrectly includes a link")
+ def test_getpager_with_stdin_none(self):
+ previous_stdin = sys.stdin
+ try:
+ sys.stdin = None
+ pydoc.getpager() # Shouldn't fail.
+ finally:
+ sys.stdin = previous_stdin
+
def test_non_str_name(self):
# issue14638
# Treat illegal (non-str) name like no name