Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed opened files in some tests. #278

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

Vedingrot
Copy link

Hi, there are some opened files in the tests that cause annoying warnings:

test_extension_without_namespaces (test.GPXTests.test_extension_without_namespaces) ... /usr/lib64/python3.12/unittest/case.py:589: ResourceWarning: unclosed file <_io.TextIOWrapper name='test_files/gpx1.1_with_extensions_without_namespaces.gpx' mode='r' encoding='UTF-8'>
test_garmin_extension (test.GPXTests.test_garmin_extension) ... /usr/lib64/python3.12/unittest/case.py:589: ResourceWarning: unclosed file <_io.TextIOWrapper name='test_files/gpx_with_garmin_extension.gpx' mode='r' encoding='UTF-8'>
test_garmin_extension (test.GPXTests.test_garmin_extension) ... /usr/lib64/python3.12/unittest/case.py:589: ResourceWarning: unclosed file <_io.TextIOWrapper name='test_files/gpx_with_garmin_extension.gpx' mode='r' encoding='UTF-8'>

So, I just closed them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant