aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/pysidetest/container_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Tests: Fix some flake warningsFriedemann Kleint2023-11-281-2/+2
| | | | | | | | Mostly spacing related. Pick-to: 6.6 Change-Id: I748a8a06f456c5d4bafb94c397c43b3b2ee9e3e9 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-29/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* PySide6: Convert QSet to PySetFriedemann Kleint2021-11-081-4/+3
| | | | | | | | | | | | QSet instances were historically converted to PyLists. Change it to be converted to a PySet. Since both are iterable, this should have no impact on client code. [ChangeLog][PySide6] On return, QSet instances will be converted to a PySet instead of a PyList. Change-Id: I77e81473c651ff370ce5af9a8a87ba23edb02eab Reviewed-by: Christian Tismer <tismer@stackless.com>
* shiboken6: Handle PySets as function parametersFriedemann Kleint2021-11-051-1/+19
| | | | | | | | | | | | | | | | | | | | | | Python sets are iterable but not of sequence type. While the existing converter code from the templates uses iterators, the built-in check functions convertibleSequenceTypes()/checkSequenceTypes() assume a PySequence and would fail for PySets. Add new check functions convertibleIterableTypes()/checkIterableTypes() using iterators and use them for PySet. Add a test and a test for lists as a drive-by. [ChangeLog][PySide6] sets are now supported for functions taking a QSet. Pick-to: 6.2 Task-number: PYSIDE-174 Task-number: PYSIDE-1666 Change-Id: I883869162e7dfa9cd0e1669f941fb7864f0cf825 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Handle QMultiMap/QMultiHash with several values per keyFriedemann Kleint2021-07-211-0/+73
There are occurrences of QMultiMap in QtConnectivity and QtNetworkAuth. QMultiMap has no equivalent in Python, lists should be used for the values. Add converters for QMultiMap/QMultiHash. [ChangeLog][PySide6] QMultiMap and QMultiHash are now converted to a dict of key/list of values (corresponding to defaultdict). Change-Id: I98ddb2479e3434f1ca1cc33a41519e73ce4fb805 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>