Show More
@@ -8,6 +8,7 b" with better-isolated tests that don't rely on the global instance in iptest." | |||||
8 | from IPython.core.splitinput import LineInfo |
|
8 | from IPython.core.splitinput import LineInfo | |
9 | from IPython.core.prefilter import AutocallChecker |
|
9 | from IPython.core.prefilter import AutocallChecker | |
10 |
|
10 | |||
|
11 | ||||
11 | def doctest_autocall(): |
|
12 | def doctest_autocall(): | |
12 | """ |
|
13 | """ | |
13 | In [1]: def f1(a,b,c): |
|
14 | In [1]: def f1(a,b,c): |
@@ -32,6 +32,7 b' tests.append(("P\xc3\xa9rez Fernando", ("", "", "P\xc3\xa9rez", "Fernando")))' | |||||
32 | def test_split_user_input(): |
|
32 | def test_split_user_input(): | |
33 | return tt.check_pairs(split_user_input, tests) |
|
33 | return tt.check_pairs(split_user_input, tests) | |
34 |
|
34 | |||
|
35 | ||||
35 | def test_LineInfo(): |
|
36 | def test_LineInfo(): | |
36 | """Simple test for LineInfo construction and str()""" |
|
37 | """Simple test for LineInfo construction and str()""" | |
37 | linfo = LineInfo(" %cd /home") |
|
38 | linfo = LineInfo(" %cd /home") |
@@ -2,6 +2,7 b' from IPython.core.error import TryNext' | |||||
2 | from IPython.lib.clipboard import ClipboardEmpty |
|
2 | from IPython.lib.clipboard import ClipboardEmpty | |
3 | from IPython.testing.decorators import skip_if_no_x11 |
|
3 | from IPython.testing.decorators import skip_if_no_x11 | |
4 |
|
4 | |||
|
5 | ||||
5 | @skip_if_no_x11 |
|
6 | @skip_if_no_x11 | |
6 | def test_clipboard_get(): |
|
7 | def test_clipboard_get(): | |
7 | # Smoketest for clipboard access - we can't easily guarantee that the |
|
8 | # Smoketest for clipboard access - we can't easily guarantee that the |
@@ -7,6 +7,7 b' import warnings' | |||||
7 | # Copyright (c) IPython Development Team. |
|
7 | # Copyright (c) IPython Development Team. | |
8 | # Distributed under the terms of the Modified BSD License. |
|
8 | # Distributed under the terms of the Modified BSD License. | |
9 |
|
9 | |||
|
10 | ||||
10 | class preserve_keys(object): |
|
11 | class preserve_keys(object): | |
11 | """Preserve a set of keys in a dictionary. |
|
12 | """Preserve a set of keys in a dictionary. | |
12 |
|
13 |
@@ -1,4 +1,3 b'' | |||||
1 |
|
||||
2 |
|
|
1 | from warnings import warn | |
3 |
|
2 | |||
4 | warn("IPython.utils.eventful has moved to traitlets.eventful", stacklevel=2) |
|
3 | warn("IPython.utils.eventful has moved to traitlets.eventful", stacklevel=2) |
@@ -1,4 +1,3 b'' | |||||
1 |
|
||||
2 |
|
|
1 | from warnings import warn | |
3 |
|
2 | |||
4 | warn("IPython.utils.log has moved to traitlets.log", stacklevel=2) |
|
3 | warn("IPython.utils.log has moved to traitlets.log", stacklevel=2) |
@@ -48,6 +48,7 b' class TemporaryWorkingDirectory(TemporaryDirectory):' | |||||
48 | with TemporaryWorkingDirectory() as tmpdir: |
|
48 | with TemporaryWorkingDirectory() as tmpdir: | |
49 | ... |
|
49 | ... | |
50 | """ |
|
50 | """ | |
|
51 | ||||
51 | def __enter__(self): |
|
52 | def __enter__(self): | |
52 | self.old_wd = Path.cwd() |
|
53 | self.old_wd = Path.cwd() | |
53 | _os.chdir(self.name) |
|
54 | _os.chdir(self.name) |
General Comments 0
You need to be logged in to leave comments.
Login now