File: python3.13-tests.patch

package info (click to toggle)
spyder 6.0.5%2Bds-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,672 kB
  • sloc: python: 121,632; sh: 420; xml: 142; javascript: 131; cpp: 67; makefile: 20; ansic: 19; erlang: 15; lisp: 11; java: 5
file content (27 lines) | stat: -rw-r--r-- 1,224 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Some parameters in tests are different in Python 3.13
 Upstream will make this or a similar change when they start officially
 supporting Python 3.13.
Forwarded: not-needed
Author: Julian Gilbey <jdg@debian.org>
Last-Update: 2024-12-29

--- a/spyder/plugins/variableexplorer/widgets/objectexplorer/tests/test_objectexplorer.py
+++ b/spyder/plugins/variableexplorer/widgets/objectexplorer/tests/test_objectexplorer.py
@@ -113,7 +113,7 @@
     ({1, 2, 1, 3, None, 'A', 'B', 'C', True, False}, [54, 57]),
     (1.2233, [57, 59]),
     (np.random.rand(10, 10), [162, 167]),
-    (datetime.date(1945, 5, 8), [43, 48])
+    (datetime.date(1945, 5, 8), [43, 49])
 ])
 def test_objectexplorer_collection_types(objectexplorer, params):
     """Test to validate proper handling of collection data types."""
@@ -140,7 +140,7 @@
 
 @pytest.mark.parametrize('params', [
             # show_callable_, show_special_, rowCount for python 3 and 2
-            (True, True, [35, 34, 26], ),  # 35: py3.11, 34: py3.x, 26: py2.7
+            (True, True, [37, 35, 34, 26], ),  # 37: py3.13, 35: py3.11, 34: py3.x, 26: py2.7
             (False, False, [8, 8], )
         ])
 def test_objectexplorer_types(objectexplorer, params):