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

Skip to content

Commit f9db68b

Browse files
authored
Merge pull request #13239 from Kojoley/pytest-ipdoctest-plugin
Pytest ipdoctest plugin
2 parents 76b369e + 7617110 commit f9db68b

7 files changed

Lines changed: 853 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
cp /tmp/ipy_coverage.xml ./
4545
cp /tmp/.coverage ./
4646
- name: pytest
47+
env:
48+
COLUMNS: 120
4749
run: |
48-
pytest -v --cov --cov-report=xml
50+
pytest --color=yes -v --cov --cov-report=xml
4951
- name: Upload coverage to Codecov
5052
uses: codecov/codecov-action@v2

IPython/core/tests/test_magic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def test_xdel(self):
584584
def doctest_who():
585585
"""doctest for %who
586586
587-
In [1]: %reset -f
587+
In [1]: %reset -sf
588588
589589
In [2]: alpha = 123
590590

IPython/external/decorators/_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def knownfail_decorator(f):
137137
from pytest import xfail
138138
except ImportError:
139139

140-
def xfail():
140+
def xfail(msg):
141141
raise KnownFailureTest(msg)
142142

143143
def knownfailer(*args, **kwargs):

0 commit comments

Comments
 (0)