Skip to content

Commit

Permalink
Tests: Python 2 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Mar 13, 2020
1 parent 078d48b commit e595547
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spyder_notebook/tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
# Local imports
from spyder_notebook.notebookplugin import NotebookPlugin

# Python 2 compatibility
if sys.version[0] == 2:
PermissionError = OSError

# =============================================================================
# Constants
# =============================================================================
Expand Down

0 comments on commit e595547

Please sign in to comment.