Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e3847f

Browse files
committed
Compatibility with traitlets 5.0.
This now uses argparse which parses things a bit differently, and in particular needs -- to execure a file and not assume that --profile get a list of items.
1 parent 624a95c commit 8e3847f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ install:
4141
fi
4242
- pip install -e file://$PWD#egg=ipython[test] --upgrade
4343
- pip install trio curio --upgrade --upgrade-strategy eager
44-
- pip install pytest 'matplotlib !=3.2.0' mypy
44+
- pip install 'pytest<6' 'matplotlib !=3.2.0' mypy
4545
- pip install codecov check-manifest --upgrade
4646
- pip install mypy
4747
- |

IPython/core/formatters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def for_type(self, typ, func=None):
432432
"""Add a format function for a given type.
433433
434434
Parameters
435-
-----------
435+
----------
436436
typ : type or '__module__.__name__' string for a type
437437
The class of the object that will be formatted using `func`.
438438
func : callable

IPython/testing/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def ipexec(fname, options=None, commands=()):
198198
ipython_cmd = get_ipython_cmd()
199199
# Absolute path for filename
200200
full_fname = os.path.join(test_dir, fname)
201-
full_cmd = ipython_cmd + cmdargs + [full_fname]
201+
full_cmd = ipython_cmd + cmdargs + ['--', full_fname]
202202
env = os.environ.copy()
203203
# FIXME: ignore all warnings in ipexec while we have shims
204204
# should we keep suppressing warnings here, even after removing shims?

0 commit comments

Comments
 (0)