Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Aug 1, 2023
1 parent 1647a27 commit a33dfc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spyder_kernels/console/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def get_mpl_interactive_backend(self):
if framework is None:
# Since no interactive backend has been set yet, this is
# equivalent to having the inline one.
return 0
return 'inline'
elif framework in mapping:
return MPL_BACKENDS_TO_SPYDER[mapping[framework]]
else:
Expand Down
3 changes: 3 additions & 0 deletions spyder_kernels/console/tests/test_console_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,9 @@ def test_get_interactive_backend(backend):
user_expressions = reply['content']['user_expressions']
value = user_expressions['output']['data']['text/plain']

# remove quotes
value = value[1:-1]

# Assert we got the right interactive backend
if backend is not None:
assert value == backend
Expand Down

0 comments on commit a33dfc8

Please sign in to comment.