From: Ned Deily Date: Fri, 3 Feb 2012 22:13:03 +0000 (+0100) Subject: Issue #13861: Prevent test_apropos* test case failures in test_pydoc. X-Git-Tag: v2.7.3rc1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22d2711cb6775b62475a0dbff7e6c4c984b51610;p=python Issue #13861: Prevent test_apropos* test case failures in test_pydoc. --- diff --git a/Lib/test/test_pydoc.py b/Lib/test/test_pydoc.py index b433850fcd..59cbffe6d2 100644 --- a/Lib/test/test_pydoc.py +++ b/Lib/test/test_pydoc.py @@ -313,7 +313,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('', result) def test_apropos_with_unreadable_dir(self): @@ -323,7 +323,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('', result)