setuponly: pytest_fixture_setup: use option directly
This commit is contained in:
		
							parent
							
								
									83351a3368
								
							
						
					
					
						commit
						a6152db84a
					
				|  | @ -22,8 +22,7 @@ def pytest_addoption(parser): | ||||||
| @pytest.hookimpl(hookwrapper=True) | @pytest.hookimpl(hookwrapper=True) | ||||||
| def pytest_fixture_setup(fixturedef, request): | def pytest_fixture_setup(fixturedef, request): | ||||||
|     yield |     yield | ||||||
|     config = request.config |     if request.config.option.setupshow: | ||||||
|     if config.option.setupshow: |  | ||||||
|         if hasattr(request, "param"): |         if hasattr(request, "param"): | ||||||
|             # Save the fixture parameter so ._show_fixture_action() can |             # Save the fixture parameter so ._show_fixture_action() can | ||||||
|             # display it now and during the teardown (in .finish()). |             # display it now and during the teardown (in .finish()). | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue