Skip to content

Commit

Permalink
Extend the ignored part of IPython outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzymadness committed Feb 28, 2022
1 parent 35e7fb4 commit 28231a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbclient/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

addr_pat = re.compile(r'0x[0-9a-f]{7,9}')
current_dir = os.path.dirname(__file__)
ipython_input_pat = re.compile(r'<ipython-input-\d+-[0-9a-f]+>')
ipython_input_pat = re.compile(r'<ipython-input-\d+-[0-9a-f]+> in (<module>|<cell line: \d>\(\))')
# Tracebacks look different in IPython 8,
# see: https://github.com/ipython/ipython/blob/master/docs/source/whatsnew/version8.rst#traceback-improvements # noqa
ipython8_input_pat = re.compile(r'Input In \[\d+\],')
ipython8_input_pat = re.compile(r'Input In \[\d+\],? in (<module>|<cell line: \d>\(\))')

hook_methods = [
"on_cell_start",
Expand Down

0 comments on commit 28231a8

Please sign in to comment.