diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-12-19 08:49:25 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-12-20 10:14:45 +0100 |
| commit | 6eb75a26498f8984345fcdd5434b6758819f0d7f (patch) | |
| tree | db4b6b7b706bb3443c946014cec48315f3e9ec7c /sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py | |
| parent | 6a3161e3fea6b84106b3dfcd84b541e643c9e531 (diff) | |
qpixmap_test.py: Fix warning about leaking file handle
Port to pathlib, fixing:
sources/pyside6/tests/QtGui/qpixmap_test.py:42: ResourceWarning:
unclosed file <_io.BufferedReader name='/data0/frkleint/pyside-setup6i/sources/pyside6/tests/QtGui/sample.png'>
data = open(os.path.join(os.path.dirname(__file__), 'sample.png'), 'rb').read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
Pick-to: 6.8
Change-Id: I8417719eb150aae9e04b5ff706e3934b398e7381
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding/enumfromremovednamespace_test.py')
0 files changed, 0 insertions, 0 deletions
