Re-enable the domain reload tests by BadSingleton · Pull Request #1404 · pythonnet/pythonnet
Expand Up
@@ -29,6 +29,8 @@ def pytest_addoption(parser):
help="Must be one of default, netcore, netfx and mono"
)
collect_ignore = []
def pytest_configure(config): global bin_path if "clr" in sys.modules: Expand Down Expand Up @@ -73,6 +75,21 @@ def pytest_configure(config): import clr clr.AddReference("Python.Test")
soft_mode = False try: os.environ['PYTHONNET_SHUTDOWN_MODE'] == 'Soft' except: pass
if config.getoption("--runtime") == "netcore" or soft_mode\ : collect_ignore.append("domain_tests/test_domain_reload.py") else: domain_tests_dir = os.path.join(os.path.dirname(__file__), "domain_tests") bin_path = os.path.join(domain_tests_dir, "bin") check_call(["dotnet", "build", domain_tests_dir, "-o", bin_path])
def pytest_unconfigure(config): global bin_path Expand Down
collect_ignore = []
def pytest_configure(config): global bin_path if "clr" in sys.modules: Expand Down Expand Up @@ -73,6 +75,21 @@ def pytest_configure(config): import clr clr.AddReference("Python.Test")
soft_mode = False try: os.environ['PYTHONNET_SHUTDOWN_MODE'] == 'Soft' except: pass
if config.getoption("--runtime") == "netcore" or soft_mode\ : collect_ignore.append("domain_tests/test_domain_reload.py") else: domain_tests_dir = os.path.join(os.path.dirname(__file__), "domain_tests") bin_path = os.path.join(domain_tests_dir, "bin") check_call(["dotnet", "build", domain_tests_dir, "-o", bin_path])
def pytest_unconfigure(config): global bin_path Expand Down