From 0ddc955179a64bd266d01273333e1c16c752380c 2020-07-31 04:52:19 From: Matthias Bussonnier Date: 2020-07-31 04:52:19 Subject: [PATCH] Merge pull request #12474 from meeseeksmachine/auto-backport-of-pr-12473-on-7.x --- diff --git a/.travis.yml b/.travis.yml index 11779fb..a2e3dca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,7 +43,7 @@ install: fi - pip install -e file://$PWD#egg=ipython[test] --upgrade - pip install trio curio --upgrade --upgrade-strategy eager - - pip install pytest 'matplotlib !=3.2.0' mypy + - pip install 'pytest<6' 'matplotlib !=3.2.0' mypy - pip install codecov check-manifest --upgrade script: diff --git a/IPython/core/formatters.py b/IPython/core/formatters.py index 237b959..c13caab 100644 --- a/IPython/core/formatters.py +++ b/IPython/core/formatters.py @@ -432,7 +432,7 @@ class BaseFormatter(Configurable): """Add a format function for a given type. Parameters - ----------- + ---------- typ : type or '__module__.__name__' string for a type The class of the object that will be formatted using `func`. func : callable diff --git a/IPython/testing/tools.py b/IPython/testing/tools.py index 0db926a..e7e7285 100644 --- a/IPython/testing/tools.py +++ b/IPython/testing/tools.py @@ -198,7 +198,7 @@ def ipexec(fname, options=None, commands=()): ipython_cmd = get_ipython_cmd() # Absolute path for filename full_fname = os.path.join(test_dir, fname) - full_cmd = ipython_cmd + cmdargs + [full_fname] + full_cmd = ipython_cmd + cmdargs + ['--', full_fname] env = os.environ.copy() # FIXME: ignore all warnings in ipexec while we have shims # should we keep suppressing warnings here, even after removing shims?