Python console editor warning: "ResourceWarning: unclosed file" #57071
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Python Console
Python Console
Regression
Something which used to work, but doesn't anymore
What is the bug or the crash?
Using QGIS 3.34.5 or QGIS 3.36.1 on Windows, when an unsaved Python script in the Python console editor is executed, the following warning is displayed in the Log Messages panel:
Steps to reproduce the issue
print('test')
Versions
QGIS version
3.34.5-Prizren
QGIS code revision
4b30849
Qt version
5.15.3
Python version
3.9.18
GDAL/OGR version
3.8.4
PROJ version
9.3.1
EPSG Registry database version
v10.098 (2023-11-24)
GEOS version
3.12.1-CAPI-1.18.1
SQLite version
3.41.1
PDAL version
2.6.0
PostgreSQL client version
16.2
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 1903
Active Python plugins
qgis2web
3.19.0
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
The warning was not displayed using QGIS 3.28.15.
It seems the warning is displayed since QGIS 3.30.
The text was updated successfully, but these errors were encountered: