]> granicus.if.org Git - python/commitdiff
Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
authorNed Deily <nad@acm.org>
Fri, 3 Feb 2012 22:14:37 +0000 (23:14 +0100)
committerNed Deily <nad@acm.org>
Fri, 3 Feb 2012 22:14:37 +0000 (23:14 +0100)
Lib/test/test_pydoc.py

index c139fa40fd0b6fefbde1a468a11a7dae9b98c16d..65b0ab540ee286e0acc9e2ff47bf815023be9709 100644 (file)
@@ -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)