Commit 34294919 authored by Ned Deily's avatar Ned Deily

Issue #13861: Prevent test_apropos* test case failures in test_pydoc.

parent cf550dcf
...@@ -399,7 +399,7 @@ class PydocImportTest(unittest.TestCase): ...@@ -399,7 +399,7 @@ class PydocImportTest(unittest.TestCase):
badsyntax = os.path.join(pkgdir, "__init__") + os.extsep + "py" badsyntax = os.path.join(pkgdir, "__init__") + os.extsep + "py"
with open(badsyntax, 'w') as f: with open(badsyntax, 'w') as f:
f.write("invalid python syntax = $1\n") 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) self.assertEqual(b'', result)
def test_apropos_with_unreadable_dir(self): def test_apropos_with_unreadable_dir(self):
...@@ -409,7 +409,7 @@ class PydocImportTest(unittest.TestCase): ...@@ -409,7 +409,7 @@ class PydocImportTest(unittest.TestCase):
self.addCleanup(os.rmdir, self.unreadable_dir) self.addCleanup(os.rmdir, self.unreadable_dir)
# Note, on Windows the directory appears to be still # Note, on Windows the directory appears to be still
# readable so this is not really testing the issue there # 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) self.assertEqual(b'', result)
......
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