diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-04 10:06:13 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-07 14:46:08 +0200 |
| commit | ce1175fbf1bfb05461add6ce2e157283e1badf39 (patch) | |
| tree | b62a1176fb8b5195950485d8b7c2e86e38008ca2 /sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py | |
| parent | 25f32760033bb978e5c89b65f4ccf9362a23bff2 (diff) | |
QtAsyncio: Include this non-Qt module into normal testing
QtAsyncio has tests like other modules, although they were not
automatically tested.
Add a way to specify this kind of modules without conflicts in cmake.
Initial-patch-by: Christian Tismer <tismer@stackless.com>
Task-number: PYSIDE-769
Change-Id: I9897f37c98c400846af77d18533486fb048aca80
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py')
| -rw-r--r-- | sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py b/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py index 489354349..a3bcd0c27 100644 --- a/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py +++ b/sources/pyside6/tests/QtAsyncio/qasyncio_test_threadsafe.py @@ -4,14 +4,22 @@ from __future__ import annotations '''Test cases for QtAsyncio''' +import os +import sys import unittest + +from pathlib import Path +sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) +from init_paths import init_test_paths +init_test_paths(False) + import asyncio import threading import time - from PySide6.QtAsyncio import QAsyncioEventLoopPolicy +@unittest.skip("Temporarily disabled: hangs indefinitely on Python < 3.11") class QAsyncioTestCaseThreadsafe(unittest.TestCase): def setUp(self) -> None: |
