aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/samplebinding/protected_test.py
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6: Rename cacheSize() to wrapperCount() for clarityFriedemann Kleint2025-03-271-10/+10
| | | | | | Pick-to: 6.9 6.8 Change-Id: I85820ef691ad8e08ccbb1d7a4c3dea6d3f364c1a Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6/tests: Use fully qualified enumerationsFriedemann Kleint2024-12-201-48/+49
| | | | | | | Pick-to: 6.8 Task-number: PYSIDE-1735 Change-Id: I5a907b536b36521eb6dd5fcdc1ad1094bb031aa8 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* 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>
* shiboken tests/samplebinding: Fix flake8 warningsFriedemann Kleint2024-03-131-23/+58
| | | | | | | | | - Remove * imports - Remove a hidden test that was non-functional Pick-to: 6.6 6.5 Change-Id: I34c98ef81d0ebe11b0813670149c00cfcff4eb28 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>
* Fix some tests checking deletion for PyPy, amendedChristian Tismer2022-03-071-0/+4
| | | | | | | | | | | | | | | | | Additionally to garbage collection, it was necessary in two cases to break the cycle, explicitly. This solves protected_test.py, completely. [ChangeLog][shiboken6] A PyPy bug was not a bug but needed garbage collection and cycle breakage. amends <28099de59b5203166990a109fa8b176b22c6e377> Task-number: PYSIDE-535 Task-number: PYSIDE-1843 Change-Id: I4ba1bbf957971322c50dc28db6607c146309d0da Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* Fix some tests checking delection for PyPyFriedemann Kleint2022-03-071-0/+12
| | | | | | | | | Add gc.collect(). Task-number: PYSIDE-535 Task-number: PYSIDE-1843 Change-Id: Ia52e53a42cb6fa266dfabcec607fb3391eb9d22a Reviewed-by: Christian Tismer <tismer@stackless.com>
* PyPySide: fix quite a few tests using del or __del__Christian Tismer2021-10-271-1/+14
| | | | | | | | | | | | | | | | | In PyPy, the __del__ method is only triggered reliably by calling gc.collect() Also, the del statement does a deletion from the namespace, but the real deletion happens when gc.collent() is called. This was applied to all tests which use del, regardless if it has a visible effect on PyPy or not. It turned out to save more 8 errors, which is great. Task-number: PYSIDE-535 Change-Id: I6a58d90629c9eafec7307c17f021251113b3c7f2 Pick-to: 6.2 Reviewed-by: Christian Tismer <tismer@stackless.com>
* Switch from os.path to pathlib.Path, systematic test changesChristian Tismer2021-02-081-1/+2
| | | | | | | | | | | | | | | | | | This patch does the systematic changes on all tests. Note that there was a bug in principle: os.path was used without importing os.path This worked through the way how the os module initializes itself, but you always will find the explicit import in the python library. But the problem is going away anyway after the transition to pathlib.Path :) Change-Id: I95144d7f9bb07a38376c3aa428df663f2e64bcb7 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Rename shiboken2 to shiboken6Friedemann Kleint2020-10-281-0/+363
Adapt CMake files, build scripts, tests and examples. Task-number: PYSIDE-904 Change-Id: I4cb5ee4c8df539546014b08202a7b1e98ed3ff07 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>