mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Clean up some idioms in packaging tests.
- Use os.makedirs (I had forgotten about it!) - Let TempdirManager.write_file call os.path.join for us - Remove custom command added by test_dist - Use a skip instead of hiding a method with an underscore - Address pyflakes warnings
This commit is contained in:
		
							parent
							
								
									79d9c42b04
								
							
						
					
					
						commit
						f3f283a1cb
					
				
					 13 changed files with 40 additions and 37 deletions
				
			
		|  | @ -71,9 +71,8 @@ def prepare_sample_dir(self, sample_dir=None): | |||
|         if sample_dir is None: | ||||
|             sample_dir = self.mkdtemp() | ||||
|         os.mkdir(os.path.join(sample_dir, "docs")) | ||||
|         self.write_file(os.path.join(sample_dir, "docs", "index.html"), | ||||
|                         "Ce mortel ennui") | ||||
|         self.write_file(os.path.join(sample_dir, "index.html"), "Oh la la") | ||||
|         self.write_file((sample_dir, "docs", "index.html"), "Ce mortel ennui") | ||||
|         self.write_file((sample_dir, "index.html"), "Oh la la") | ||||
|         return sample_dir | ||||
| 
 | ||||
|     def test_zip_dir(self): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Éric Araujo
						Éric Araujo