test_ok1/testing/example_scripts/conftest_usageerror/conftest.py

9 lines
159 B
Python
Raw Normal View History

def pytest_configure(config):
import pytest
raise pytest.UsageError("hello")
2018-11-09 08:31:53 +08:00
def pytest_unconfigure(config):
print("pytest_unconfigure_called")