from . import query
from . import rndc
from . import log
+
+# isctest.mark module is intentionally NOT imported, because it relies on
+# environment variables which might not be set at the time of import of the
+# `isctest` package. To use the marks, manual `import isctest.mark` is needed
+# instead.
import platform
-import pytest_custom_markers
+import isctest.mark
MAX_RUNS = 2 if platform.system() == "FreeBSD" else 1 # GL#3846
-@pytest_custom_markers.flaky(max_runs=MAX_RUNS)
+@isctest.mark.flaky(max_runs=MAX_RUNS)
def test_nsupdate(run_tests_sh):
run_tests_sh()
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-import pytest_custom_markers
+import isctest.mark
# The qmin test is inherently unstable, see GL #904 for details.
-@pytest_custom_markers.flaky(max_runs=3)
+@isctest.mark.flaky(max_runs=3)
def test_qmin(run_tests_sh):
run_tests_sh()
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-import pytest_custom_markers
+import isctest.mark
# The reclimit is known to be quite unstable. GL #1587
-@pytest_custom_markers.flaky(max_runs=2)
+@isctest.mark.flaky(max_runs=2)
def test_reclimit(run_tests_sh):
run_tests_sh()
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-import pytest_custom_markers
+import isctest.mark
# The rrl is known to be quite unstable. GL #172
-@pytest_custom_markers.flaky(max_runs=2)
+@isctest.mark.flaky(max_runs=2)
def test_rrl(run_tests_sh):
run_tests_sh()
import pytest
-import pytest_custom_markers
+import isctest.mark
pytest.register_assert_rewrite("generic")
import generic
-pytestmark = pytest_custom_markers.have_json_c
+pytestmark = isctest.mark.have_json_c
requests = pytest.importorskip("requests")
import pytest
-import pytest_custom_markers
+import isctest.mark
pytest.register_assert_rewrite("generic")
import generic
-pytestmark = pytest_custom_markers.have_libxml2
+pytestmark = isctest.mark.have_libxml2
requests = pytest.importorskip("requests")
import dns.rdataclass
import dns.rdatatype
-import pytest_custom_markers # pylint: disable=import-error
+import isctest.mark # pylint: disable=import-error
TIMEOUT = 10
assert soa is not None
-@pytest_custom_markers.flaky(max_runs=3)
+@isctest.mark.flaky(max_runs=3)
def test_send_timeout(named_port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect(("10.53.0.1", named_port))
raise EOFError from e
-@pytest_custom_markers.long_test
+@isctest.mark.long_test
def test_max_transfer_idle_out(named_port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect(("10.53.0.1", named_port))
assert soa is None
-@pytest_custom_markers.long_test
+@isctest.mark.long_test
def test_max_transfer_time_out(named_port):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.connect(("10.53.0.1", named_port))