changeset: 74745:e5f2c04055a2 branch: 2.7 parent: 74737:41cabdff2686 user: Ned Deily date: Fri Feb 03 23:13:03 2012 +0100 files: Lib/test/test_pydoc.py description: Issue #13861: Prevent test_apropos* test case failures in test_pydoc. diff -r 41cabdff2686 -r e5f2c04055a2 Lib/test/test_pydoc.py --- a/Lib/test/test_pydoc.py Fri Feb 03 02:39:49 2012 +0100 +++ b/Lib/test/test_pydoc.py Fri Feb 03 23:13:03 2012 +0100 @@ -313,7 +313,7 @@ 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 @@ 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)

AltStyle によって変換されたページ (->オリジナル) /