mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Allow conftest.py to run twice for build envs
This commit is contained in:
		
							parent
							
								
									3420506954
								
							
						
					
					
						commit
						308b1706a7
					
				|  | @ -3,7 +3,13 @@ from spacy.util import get_lang_class | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def pytest_addoption(parser): | def pytest_addoption(parser): | ||||||
|     parser.addoption("--slow", action="store_true", help="include slow tests") |     try: | ||||||
|  |         parser.addoption("--slow", action="store_true", help="include slow tests") | ||||||
|  |         parser.addoption("--issue", action="store", help="test specific issues") | ||||||
|  |     # Options are already added, e.g. if conftest is copied in a build pipeline | ||||||
|  |     # and runs twice | ||||||
|  |     except ValueError: | ||||||
|  |         pass | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def pytest_runtest_setup(item): | def pytest_runtest_setup(item): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user