From e5955476eb07bf3bb6a72ce7504551252d8838d9 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Fri, 13 Mar 2020 09:25:13 +0000 Subject: [PATCH] Tests: Python 2 compatibility fix --- spyder_notebook/tests/test_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spyder_notebook/tests/test_plugin.py b/spyder_notebook/tests/test_plugin.py index 457c29b2..79fb055d 100644 --- a/spyder_notebook/tests/test_plugin.py +++ b/spyder_notebook/tests/test_plugin.py @@ -26,6 +26,10 @@ # Local imports from spyder_notebook.notebookplugin import NotebookPlugin +# Python 2 compatibility +if sys.version[0] == 2: + PermissionError = OSError + # ============================================================================= # Constants # =============================================================================