diff options
author | Ned Deily <nad@acm.org> | 2012-02-03 22:14:37 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-02-03 22:14:37 (GMT) |
commit | 342949195033a078ac341ca219406e30fb9b51ec (patch) | |
tree | a9c514562bb8fa1698e23c91fda4e37a0f0fb595 /Lib/test/test_pydoc.py | |
parent | cf550dcff8eccac2745acbff2541be3b6405abe4 (diff) | |
download | cpython-342949195033a078ac341ca219406e30fb9b51ec.zip cpython-342949195033a078ac341ca219406e30fb9b51ec.tar.gz cpython-342949195033a078ac341ca219406e30fb9b51ec.tar.bz2 |
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
Diffstat (limited to 'Lib/test/test_pydoc.py')
-rw-r--r-- | Lib/test/test_pydoc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index c139fa4..65b0ab5 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -399,7 +399,7 @@ class PydocImportTest(unittest.TestCase): badsyntax = os.path.join(pkgdir, "__init__") + os.extsep + "py" with open(badsyntax, 'w') as f: f.write("invalid python syntax = $1\n") - result = run_pydoc('nothing', '-k', PYTHONPATH=TESTFN) + result = run_pydoc('zqwykjv', '-k', PYTHONPATH=TESTFN) self.assertEqual(b'', result) def test_apropos_with_unreadable_dir(self): @@ -409,7 +409,7 @@ class PydocImportTest(unittest.TestCase): self.addCleanup(os.rmdir, self.unreadable_dir) # Note, on Windows the directory appears to be still # readable so this is not really testing the issue there - result = run_pydoc('nothing', '-k', PYTHONPATH=TESTFN) + result = run_pydoc('zqwykjv', '-k', PYTHONPATH=TESTFN) self.assertEqual(b'', result) |