Skip to content

Commit

Permalink
Merge pull request #13739 from Carreau/black
Browse files Browse the repository at this point in the history
MAINT: run black on files that ends up in a single line change.
  • Loading branch information
Carreau committed Aug 30, 2022
2 parents 1061a1e + f5d4e0a commit 4e1c56c
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions IPython/core/tests/print_argv.py
@@ -1,2 +1,3 @@
import sys

print(sys.argv[1:])
1 change: 1 addition & 0 deletions IPython/core/tests/test_autocall.py
Expand Up @@ -8,6 +8,7 @@
from IPython.core.splitinput import LineInfo
from IPython.core.prefilter import AutocallChecker


def doctest_autocall():
"""
In [1]: def f1(a,b,c):
Expand Down
1 change: 1 addition & 0 deletions IPython/core/tests/test_splitinput.py
Expand Up @@ -32,6 +32,7 @@
def test_split_user_input():
return tt.check_pairs(split_user_input, tests)


def test_LineInfo():
"""Simple test for LineInfo construction and str()"""
linfo = LineInfo(" %cd /home")
Expand Down
1 change: 1 addition & 0 deletions IPython/lib/tests/test_clipboard.py
Expand Up @@ -2,6 +2,7 @@
from IPython.lib.clipboard import ClipboardEmpty
from IPython.testing.decorators import skip_if_no_x11


@skip_if_no_x11
def test_clipboard_get():
# Smoketest for clipboard access - we can't easily guarantee that the
Expand Down
1 change: 1 addition & 0 deletions IPython/utils/contexts.py
Expand Up @@ -7,6 +7,7 @@
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.


class preserve_keys(object):
"""Preserve a set of keys in a dictionary.
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/eventful.py
@@ -1,4 +1,3 @@

from warnings import warn

warn("IPython.utils.eventful has moved to traitlets.eventful", stacklevel=2)
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/log.py
@@ -1,4 +1,3 @@

from warnings import warn

warn("IPython.utils.log has moved to traitlets.log", stacklevel=2)
Expand Down
1 change: 1 addition & 0 deletions IPython/utils/tempdir.py
Expand Up @@ -48,6 +48,7 @@ class TemporaryWorkingDirectory(TemporaryDirectory):
with TemporaryWorkingDirectory() as tmpdir:
...
"""

def __enter__(self):
self.old_wd = Path.cwd()
_os.chdir(self.name)
Expand Down

0 comments on commit 4e1c56c

Please sign in to comment.