mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix pathext test for shutil.which() which was
broken after applying the patch for issue #16957.
This commit is contained in:
		
						commit
						dec4de235f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1349,7 +1349,7 @@ def test_nonexistent_file(self): | |||
|     def test_pathext_checking(self): | ||||
|         # Ask for the file without the ".exe" extension, then ensure that | ||||
|         # it gets found properly with the extension. | ||||
|         rv = shutil.which(self.temp_file.name[:-4], path=self.dir) | ||||
|         rv = shutil.which(self.file[:-4], path=self.dir) | ||||
|         self.assertEqual(rv, self.temp_file.name[:-4] + ".EXE") | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka