Hello community,

here is the log from the commit of package spyder for openSUSE:Factory checked 
in at 2020-09-21 17:44:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/spyder (Old)
 and      /work/SRC/openSUSE:Factory/.spyder.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "spyder"

Mon Sep 21 17:44:22 2020 rev:11 rq:835671 version:4.1.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/spyder/spyder.changes    2020-09-04 
11:11:27.831011188 +0200
+++ /work/SRC/openSUSE:Factory/.spyder.new.4249/spyder.changes  2020-09-21 
17:47:09.705124403 +0200
@@ -1,0 +2,14 @@
+Sun Sep 20 09:40:49 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- Require a font package for testing to avoid Qt breakpoint trap
+  gh#jupyter/qtconsole#443
+- Reenable tests for all platforms
+- skip another segfaulting test on Leap
+
+-------------------------------------------------------------------
+Sat Sep 19 14:14:19 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- spyder-pr13814-completion.patch gh#spyder-ide/spyder#13814 
+  fix test failure with newer qtconsole
+
+-------------------------------------------------------------------

New:
----
  spyder-pr13814-completion.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ spyder.spec ++++++
--- /var/tmp/diff_new_pack.q9B2sb/_old  2020-09-21 17:47:11.413126013 +0200
+++ /var/tmp/diff_new_pack.q9B2sb/_new  2020-09-21 17:47:11.421126020 +0200
@@ -16,11 +16,7 @@
 #
 
 
-%ifarch x86_64
 %bcond_without  test
-%else
-%bcond_with     test
-%endif
 %define skip_python2 1
 Name:           spyder
 Version:        4.1.5
@@ -31,6 +27,8 @@
 URL:            https://www.spyder-ide.org/
 Source:         
https://github.com/spyder-ide/spyder/archive/v%{version}.tar.gz#/spyder-%{version}.tar.gz
 Source1:        spyder-rpmlintrc
+# PATCH-FIX-UPSTREAM https://github.com/spyder-ide/spyder/pull/13814 -- fix 
test failure with newer qtconsole
+Patch1:         
https://github.com/spyder-ide/spyder/pull/13814.patch#/spyder-pr13814-completion.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -141,6 +139,11 @@
 BuildRequires:  %{python_module spyder-kernels >= 1.9.2}
 BuildRequires:  %{python_module sympy >= 0.7.3}
 BuildRequires:  %{python_module watchdog}
+# Fix breakpoint/trap crashes with Qt
+# see https://github.com/jupyter/qtconsole/issues/443
+# Any Truetype font will work; remove when pytest-qt or qtwebengine
+# provide it themselves
+BuildRequires:  free-ttf-fonts
 BuildRequires:  git-core
 BuildRequires:  xdpyinfo
 %endif
@@ -215,6 +218,7 @@
 
 %prep
 %setup -q -n spyder-%{version}
+%autopatch -p1
 
 # Fix wrong-file-end-of-line-encoding RPMLint warning
 sed -i 's/\r$//' spyder/app/restart.py
@@ -290,9 +294,11 @@
 skiptests+=";test_dbg_input"
 # runs into timeouts
 skiptests+=";test_mpl_backend_change"
-# fails on Leap 15
 %if 0%{?suse_version} == 1500
+# fails on Leap
 skiptests+=";(test_objectexplorer_collection_types and params0)"
+# segfaults on Leap
+skiptests+=";test_apps_dialog"
 %endif
 # different PyQT version?
 skiptests+=";(test_objectexplorer_collection_types and params5)"

++++++ spyder-pr13814-completion.patch ++++++
>From ad544dbdcfec4d02178debde321f19b39f118c6d Mon Sep 17 00:00:00 2001
From: bnavigator <c...@bnavigator.de>
Date: Sat, 19 Sep 2020 15:52:04 +0200
Subject: [PATCH] press enter on completion test

---
 spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py 
b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
index 3e4bc911a7..a00d625fc2 100644
--- a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
@@ -1401,7 +1401,7 @@ def check_value(name, value):
     qtbot.waitUntil(shell._completion_widget.isVisible)
     # cbs is another solution, so not completed yet
     assert control.toPlainText().split()[-1] == 'cb'
-    qtbot.keyClick(shell._completion_widget, Qt.Key_Tab)
+    qtbot.keyClick(shell._completion_widget, Qt.Key_Enter)
     qtbot.waitUntil(lambda: control.toPlainText().split()[-1] == 'cbba')
 
     # Generate a traceback and enter debugging mode
@@ -1452,7 +1452,7 @@ def check_value(name, value):
     qtbot.keyClick(control, Qt.Key_Tab)
     qtbot.waitUntil(shell._completion_widget.isVisible)
     assert control.toPlainText().split()[-1] == 'ab'
-    qtbot.keyClick(shell._completion_widget, Qt.Key_Tab)
+    qtbot.keyClick(shell._completion_widget, Qt.Key_Enter)
     qtbot.waitUntil(lambda: control.toPlainText().split()[-1] == 'abba')
     qtbot.keyClick(control, Qt.Key_Enter)
     qtbot.waitUntil(lambda: control.toPlainText().split()[-1] == 'ipdb>')

Reply via email to