Commit b4fc6ee
ci(tests): suppress CPython 3.12 interned-unicode leak (PyUnicode_New) in sanitizer runs
Under ASan/LSan with Python 3.12 on Ubuntu 22.04/24.04, the cleanup tests
report direct leaks rooted in CPython’s unicode interning path (frames via
PyUnicode_New) during module import in our embedded init.
This is a known CPython issue (python/cpython#113190). Interned-unicode
cleanup was re-enabled in 3.13 (python/cpython#113601) but not backported
to 3.12. To keep CI signal meaningful while we still test against 3.12,
enable a narrow LSan suppression for PyUnicode_New only, and only on 3.12.
Notes:
- detect_leaks=1 remains enabled; the suppression is limited to PyUnicode_New
and won’t mask leaks in PythonQt.
- Remove once CI moves off Python 3.12.
Refs: python/cpython#113190, python/cpython#1136011 parent 25dbb0f commit b4fc6ee
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
0 commit comments