mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	* Run tests one file at a time, as the teardown isn't cleaning up objects in global namespace properly
This commit is contained in:
		
							parent
							
								
									4126ef3b8c
								
							
						
					
					
						commit
						27c8dc3db2
					
				
							
								
								
									
										6
									
								
								fabfile.py
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								fabfile.py
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -52,8 +52,12 @@ def clean():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def test():
 | 
					def test():
 | 
				
			||||||
    with virtualenv(VENV_DIR):
 | 
					    with virtualenv(VENV_DIR):
 | 
				
			||||||
 | 
					        # Run each test file separately. pytest is performing poorly, not sure why
 | 
				
			||||||
        with lcd(path.dirname(__file__)):
 | 
					        with lcd(path.dirname(__file__)):
 | 
				
			||||||
            local('py.test -x')
 | 
					            files = local('ls tests/test_*.py', capture=True)
 | 
				
			||||||
 | 
					            for fn in files:
 | 
				
			||||||
 | 
					                with settings(warn_only=True):
 | 
				
			||||||
 | 
					                    local('py.test -x %s' % fn)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def train(json_dir=None, dev_loc=None, model_dir=None):
 | 
					def train(json_dir=None, dev_loc=None, model_dir=None):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user