Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 12, 2022
1 parent 786da12 commit fbfd1e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
import pytest
from IPython.utils.capture import capture_output

from jupyter_client.manager import start_new_kernel
from .utils import test_env
from jupyter_client.kernelspec import KernelSpecManager
from jupyter_client.kernelspec import NATIVE_KERNEL_NAME
from jupyter_client.kernelspec import NoSuchKernel
from jupyter_client.manager import start_new_kernel

TIMEOUT = 30

Expand Down
6 changes: 3 additions & 3 deletions tests/test_kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
from jupyter_core import paths
from traitlets.config.loader import Config

from jupyter_client.manager import _ShutdownStatus
from jupyter_client.manager import start_new_async_kernel
from jupyter_client.manager import start_new_kernel
from .utils import AsyncKMSubclass
from .utils import SyncKMSubclass
from jupyter_client import AsyncKernelManager
from jupyter_client import KernelManager
from jupyter_client.manager import _ShutdownStatus
from jupyter_client.manager import start_new_async_kernel
from jupyter_client.manager import start_new_kernel

pjoin = os.path.join

Expand Down
2 changes: 1 addition & 1 deletion tests/test_multikernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from tornado.testing import gen_test
from traitlets.config.loader import Config

from jupyter_client.localinterfaces import localhost
from .utils import AsyncKMSubclass
from .utils import AsyncMKMSubclass
from .utils import install_kernel
Expand All @@ -24,6 +23,7 @@
from .utils import test_env
from jupyter_client import AsyncKernelManager
from jupyter_client import KernelManager
from jupyter_client.localinterfaces import localhost
from jupyter_client.multikernelmanager import AsyncMultiKernelManager
from jupyter_client.multikernelmanager import MultiKernelManager

Expand Down
4 changes: 1 addition & 3 deletions tests/test_provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ def mock_get_all_provisioners() -> List[EntryPoint]:

def mock_get_provisioner(factory, name) -> EntryPoint:
if name == 'new-test-provisioner':
return EntryPoint(
'new-test-provisioner', 'tests.test_provisioning', 'NewTestProvisioner'
)
return EntryPoint('new-test-provisioner', 'tests.test_provisioning', 'NewTestProvisioner')

if name in initial_provisioner_map:
return EntryPoint(name, initial_provisioner_map[name][0], initial_provisioner_map[name][1])
Expand Down

0 comments on commit fbfd1e9

Please sign in to comment.