mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	convert old fail* assertions to assert*
This commit is contained in:
		
							parent
							
								
									98d23f2e06
								
							
						
					
					
						commit
						c9c0f201fe
					
				
					 275 changed files with 4540 additions and 4540 deletions
				
			
		|  | @ -16,12 +16,12 @@ class BuildScriptsTestCase(support.TempdirManager, | |||
| 
 | ||||
|     def test_default_settings(self): | ||||
|         cmd = self.get_build_scripts_cmd("/foo/bar", []) | ||||
|         self.assert_(not cmd.force) | ||||
|         self.assert_(cmd.build_dir is None) | ||||
|         self.assertTrue(not cmd.force) | ||||
|         self.assertTrue(cmd.build_dir is None) | ||||
| 
 | ||||
|         cmd.finalize_options() | ||||
| 
 | ||||
|         self.assert_(cmd.force) | ||||
|         self.assertTrue(cmd.force) | ||||
|         self.assertEqual(cmd.build_dir, "/foo/bar") | ||||
| 
 | ||||
|     def test_build(self): | ||||
|  | @ -37,7 +37,7 @@ def test_build(self): | |||
| 
 | ||||
|         built = os.listdir(target) | ||||
|         for name in expected: | ||||
|             self.assert_(name in built) | ||||
|             self.assertTrue(name in built) | ||||
| 
 | ||||
|     def get_build_scripts_cmd(self, target, scripts): | ||||
|         import sys | ||||
|  | @ -100,7 +100,7 @@ def test_version_int(self): | |||
| 
 | ||||
|         built = os.listdir(target) | ||||
|         for name in expected: | ||||
|             self.assert_(name in built) | ||||
|             self.assertTrue(name in built) | ||||
| 
 | ||||
| def test_suite(): | ||||
|     return unittest.makeSuite(BuildScriptsTestCase) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson