1
0
Files
python-spyder-terminal/fix-test-terminal-closing.patch
Daniel Garcia b06ce16eb7 - Update to v1.2.2
* Upgrade to pywinpty 2.0.5
  * Maintenance of the CIs
  * Prevent showing an error when closing the plugin
- v1.2.1
  * Fix double zoom level for new terminals
  * Upgrade to pywinpty 2.0.1
  * Fix Spyder requirement
  * Maintenance of the CIs
- v1.2.0
  * Migration to Spyder's 5.2.x new API
  * Update to xtermjs 4.15
  * Improve new terminals when a project is available
- Add fix-test-terminal-closing.patch to fix the test_terminal_closing that
  expects an AttributeError instead of a WebSocketClosedError

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-spyder-terminal?expand=0&rev=21
2022-09-22 14:56:27 +00:00

22 lines
872 B
Diff

Index: spyder-terminal-1.2.2/spyder_terminal/server/tests/test_server.py
===================================================================
--- spyder-terminal-1.2.2.orig/spyder_terminal/server/tests/test_server.py
+++ spyder-terminal-1.2.2/spyder_terminal/server/tests/test_server.py
@@ -15,6 +15,7 @@ import pytest
from flaky import flaky
from tornado import testing, websocket, gen
from tornado.concurrent import Future
+from tornado.websocket import WebSocketClosedError
from spyder.utils.programs import find_program
sys.path.append(osp.realpath(osp.dirname(__file__) + "/.."))
@@ -132,6 +133,8 @@ class TerminalServerTests(testing.AsyncH
sock.write_message(' This shall not work')
except AttributeError:
pass
+ except WebSocketClosedError:
+ pass
yield self.close(sock)
@flaky(max_runs=3)