mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 19:50:00 -04:00
Fix 'Import should be placed at the top of the module'
In preparation for running pylint on more Python code.
(cherry picked from commit 4253d7298c)
This commit is contained in:
parent
cffa775a90
commit
7dd6b4dc5b
4 changed files with 5 additions and 6 deletions
|
|
@ -9,9 +9,7 @@ file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|||
|
||||
See the COPYRIGHT file distributed with this work for additional
|
||||
information regarding copyright ownership.
|
||||
"""
|
||||
|
||||
"""
|
||||
This is a bare-bones DNS server that only serves data from zone files. It is
|
||||
meant to be used as a replacement for full-blown named instances in system
|
||||
tests when a given server is only required to return zone-based data.
|
||||
|
|
|
|||
|
|
@ -23,9 +23,12 @@ import pytest
|
|||
|
||||
pytest.register_assert_rewrite("isctest")
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
import isctest
|
||||
from isctest.vars.dirs import SYSTEM_TEST_DIR_GIT_PATH
|
||||
|
||||
# pylint: enable=wrong-import-position
|
||||
|
||||
# Silence warnings caused by passing a pytest fixture to another fixture.
|
||||
# pylint: disable=redefined-outer-name
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ from re import compile as Re
|
|||
import os
|
||||
import pytest
|
||||
|
||||
pytest.importorskip("cryptography")
|
||||
|
||||
from cryptography.hazmat.primitives.asymmetric import ec
|
||||
|
||||
import dns
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@ See the COPYRIGHT file distributed with this work for additional
|
|||
information regarding copyright ownership.
|
||||
"""
|
||||
|
||||
from typing import AsyncGenerator, Collection, Iterable
|
||||
|
||||
import abc
|
||||
|
||||
import dns.rcode
|
||||
|
|
@ -18,8 +20,6 @@ import dns.rdataclass
|
|||
import dns.rdatatype
|
||||
import dns.rrset
|
||||
|
||||
from typing import AsyncGenerator, Collection, Iterable
|
||||
|
||||
from isctest.asyncserver import (
|
||||
ControllableAsyncDnsServer,
|
||||
DnsResponseSend,
|
||||
|
|
|
|||
Loading…
Reference in a new issue