mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 16:07:38 +03:00 
			
		
		
		
	Drop six module from coverage.
				
					
				
			This commit is contained in:
		
							parent
							
								
									c81b2c6442
								
							
						
					
					
						commit
						23fbbb1e16
					
				|  | @ -52,12 +52,15 @@ def main(): | |||
|         if os.path.basename(path) in ['tests', 'runtests', 'migrations']: | ||||
|             continue | ||||
| 
 | ||||
|         # Drop the compat module from coverage, since we're not interested in the coverage | ||||
|         # of a module which is specifically for resolving environment dependant imports. | ||||
|         # Drop the compat and six modules from coverage, since we're not interested in the coverage | ||||
|         # of modules which are specifically for resolving environment dependant imports. | ||||
|         # (Because we'll end up getting different coverage reports for it for each environment) | ||||
|         if 'compat.py' in files: | ||||
|             files.remove('compat.py') | ||||
| 
 | ||||
|         if 'six.py' in files: | ||||
|             files.remove('six.py') | ||||
| 
 | ||||
|         # Same applies to template tags module. | ||||
|         # This module has to include branching on Django versions, | ||||
|         # so it's never possible for it to have full coverage. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user