File: 0004-Ignore-whitespace-in-testcase-expectations.patch

package info (click to toggle)
napari 0.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,604 kB
  • sloc: python: 109,279; xml: 72; makefile: 42; sh: 5
file content (18 lines) | stat: -rw-r--r-- 838 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Roland Mas <roland.mas@entierement.net>
Date: Fri, 3 Jan 2025 17:29:11 +0100
Subject: Ignore whitespace in testcase expectations

---
 src/napari/_qt/widgets/_tests/test_qt_plugin_sorter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/napari/_qt/widgets/_tests/test_qt_plugin_sorter.py b/src/napari/_qt/widgets/_tests/test_qt_plugin_sorter.py
index 0060f7c..ea3414a 100644
--- a/src/napari/_qt/widgets/_tests/test_qt_plugin_sorter.py
+++ b/src/napari/_qt/widgets/_tests/test_qt_plugin_sorter.py
@@ -149,4 +149,4 @@ def test_qt_plugin_sorter_help_info(qtbot, hook_name, help_info):
 
     if sys.version_info >= (3, 13):
         help_info = re.sub(r'<br> +', r'<br>', help_info)
-    assert help_info in info_widget.toolTip()
+    assert re.sub('\s','',help_info) in re.sub('\s','',info_widget.toolTip())