mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Issue #13861: Prevent test_apropos* test case failures in test_pydoc.
This commit is contained in:
		
							parent
							
								
									cf550dcff8
								
							
						
					
					
						commit
						3429491950
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -399,7 +399,7 @@ def test_apropos_with_bad_package(self): | |||
|         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 @@ def test_apropos_with_unreadable_dir(self): | |||
|         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) | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ned Deily
						Ned Deily