diff options
| author | Christian Tismer <tismer@stackless.com> | 2025-02-28 18:39:02 +0100 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2025-02-28 23:39:33 +0100 |
| commit | 1cb5ce86b41ca11dfd678d70629f21703cf09aa3 (patch) | |
| tree | d4de9b424248d9f47b7738efb07ed73767f64a3d /sources/pyside6/tests | |
| parent | ad70c1a75af6cd7dbed4c43202c16e65481a2d7d (diff) | |
type hints: Print erroneous PYI files, but only if COIN is present
It turned out to be boring if the PYI files are printed locally.
Task-number: PYSIDE-3012
Change-Id: Ic47e1828367c1f00c263451a6090cb5e03313103
Pick-to: 6.8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests')
| -rw-r--r-- | sources/pyside6/tests/pysidetest/mypy_correctness_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/tests/pysidetest/mypy_correctness_test.py b/sources/pyside6/tests/pysidetest/mypy_correctness_test.py index ff90114ac..83d80efca 100644 --- a/sources/pyside6/tests/pysidetest/mypy_correctness_test.py +++ b/sources/pyside6/tests/pysidetest/mypy_correctness_test.py @@ -78,7 +78,7 @@ class MypyCorrectnessTest(unittest.TestCase): for line in err_lines: print(line) print(f"Time used for mypy test = {(time_post - time_pre):.5} s") - if ret.returncode != 0: + if ret.returncode != 0 and os.environ.get("QTEST_ENVIRONMENT", "") == "ci": dump_erroneous_pyi_files(err_lines, self.pyside_dir) self.assertEqual(ret.returncode, 0) |
