Source: spyder Version: 5.5.1+ds-2 Severity: serious User: debian-pyt...@lists.debian.org Usertags: python3.13
Hi Maintainer The autopkgtests of this package fail with Python 3.13 [1]. I've copied what I hope is the relevant part of the log below. Regards Graham [1] https://ci.debian.net/packages/s/spyder/testing/amd64/ 1059s =================================== FAILURES =================================== 1059s ________________ test_objectexplorer_collection_types[params5] _________________ 1059s 1059s objectexplorer = <function objectexplorer.<locals>.create_objectexplorer at 0x7f6205dee520> 1059s params = (datetime.date(1945, 5, 8), [43, 48]) 1059s 1059s @pytest.mark.parametrize('params', [ 1059s # variable to show, rowCount for different Python 3 versions 1059s ('kjkj kj k j j kj k jkj', [71, 81]), 1059s ([1, 3, 4, 'kjkj', None], [45, 48]), 1059s ({1, 2, 1, 3, None, 'A', 'B', 'C', True, False}, [54, 57]), 1059s (1.2233, [57, 59]), 1059s (np.random.rand(10, 10), [162, 167]), 1059s (datetime.date(1945, 5, 8), [43, 48]) 1059s ]) 1059s def test_objectexplorer_collection_types(objectexplorer, params): 1059s """Test to validate proper handling of collection data types.""" 1059s test, row_count = params 1059s CONF.set('variable_explorer', 'show_special_attributes', True) 1059s 1059s # Editor was created 1059s editor = objectexplorer(test, name='variable') 1059s assert editor 1059s 1059s # Check number of rows and row content 1059s model = editor.obj_tree.model() 1059s 1059s # The row for the variable 1059s assert model.rowCount() == 1 1059s 1059s # Root row with children 1059s # Since rowCount for python 3 and 2 varies on differents systems, 1059s # we use a range of values 1059s expected_output_range = list(range(min(row_count), max(row_count) + 1)) 1059s > assert model.rowCount(model.index(0, 0)) in expected_output_range 1059s E assert 49 in [43, 44, 45, 46, 47, 48] 1059s E + where 49 = <built-in method rowCount of TreeProxyModel object at 0x7f6205f0da30>(<PyQt5.QtCore.QModelIndex object at 0x7f6205e3a5f0>) 1059s E + where <built-in method rowCount of TreeProxyModel object at 0x7f6205f0da30> = <spyder.plugins.variableexplorer.widgets.objectexplorer.tree_model.TreeProxyModel object at 0x7f6205f0da30>.rowCount 1059s E + and <PyQt5.QtCore.QModelIndex object at 0x7f6205e3a5f0> = <built-in method index of TreeProxyModel object at 0x7f6205f0da30>(0, 0) 1059s E + where <built-in method index of TreeProxyModel object at 0x7f6205f0da30> = <spyder.plugins.variableexplorer.widgets.objectexplorer.tree_model.TreeProxyModel object at 0x7f6205f0da30>.index 1059s 1059s spyder/plugins/variableexplorer/widgets/objectexplorer/tests/test_objectexplorer.py:135: AssertionError