diff options
| author | Christian Tismer <tismer@stackless.com> | 2022-04-25 15:52:43 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2022-04-27 18:06:36 +0200 |
| commit | 4e63ba07d8d9104330a995dc77ea2de9098bccde (patch) | |
| tree | 2bb0b392dc8fc1361f2679575d8c2ff4472fa502 /sources/pyside6/PySide6/support/generate_pyi.py | |
| parent | 8a4a6f3aec1b3f99ee902073fe8b0b3cecb91f3e (diff) | |
__feature__: improve the feature module by a reset function
The __feature__ tests need a stronger way to reset the
feature selection reliably. Some cross-talk was observed
when running multiple tests together with PyTest. This
effect was hidden because our unit-tests are isolated in
individual processes by CTest.
- Remove all special 0x80 cases of TearDown functions
- introduce a new feature module function `reset` that
completely uninitializes the features, including the
`pyside_feature_dict`.
- drop the artificial naming of `__feature__` in favor of
`feature`. This is less confusing for people examining
the implementation.
[ChangeLog][PySide6] Feature switching was improved by avoiding
cross-talk between multiple test runs.
Task-number: PYSIDE-1019
Change-Id: I28550f293763ac58df72b8ce5c0a613c2067f6ba
Pick-to: 6.3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/pyside6/PySide6/support/generate_pyi.py')
| -rw-r--r-- | sources/pyside6/PySide6/support/generate_pyi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/PySide6/support/generate_pyi.py b/sources/pyside6/PySide6/support/generate_pyi.py index b5691f190..0c3bc2462 100644 --- a/sources/pyside6/PySide6/support/generate_pyi.py +++ b/sources/pyside6/PySide6/support/generate_pyi.py @@ -96,7 +96,7 @@ def generate_all_pyi(outpath, options): # PYSIDE-535: We cannot use __feature__ yet in PyPy generate_pyi(import_name, outpath, options) else: - import __feature__ as feature + from PySide6.support import feature feature_id = feature.get_select_id(options.feature) with feature.force_selection(feature_id, import_name): generate_pyi(import_name, outpath, options) |
