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

Reduce amount of warnings, especially closing opened file pointers #518

Merged
merged 8 commits into from
Sep 10, 2015

Conversation

joernhees
Copy link
Member

after enabling warnings in our test runs in #517 it seems as if there is a huge amount of warning output cause we have deprecation warnings and don't really care to close files we open

see

fixes:

  • plugins/stores/sparqlstore.py:438 DeprecationWarning: Call to deprecated function addDefaultGraph.
  • test/test_empty_xml_base.py:47: PendingDeprecationWarning: Please use assertTrue instead.
  • py3: thousands of unclosed file warnings:
    • Graph.parse() now takes care that if it opens files it also closes them
    • ConjunctiveGraph.parse() takes care not to double open source via args passed to Graph.parse()
    • many files opened in tests closed as well

@joernhees joernhees added enhancement New feature or request cleanup labels Aug 27, 2015
@joernhees joernhees self-assigned this Aug 27, 2015
@joernhees joernhees added this to the rdflib 4.2.2 milestone Aug 27, 2015
joernhees added a commit that referenced this pull request Sep 10, 2015
Reduce amount of warnings, especially closing opened file pointers
@joernhees joernhees merged commit 5f9e03b into RDFLib:master Sep 10, 2015
@joernhees joernhees deleted the reduce_warnings branch September 10, 2015 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant