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

Remove testing and debug code from rdflib #1849

Merged

Conversation

aucampia
Copy link
Member

Summary of changes

This patch removes code from rdflib/ that does not seem like it belongs
in rdflib/, most of it is related to doctest, some of it belongs in
test/ and was moved to test/test_misc/test_collection.py, and yet
more of it seems to just be there for debugging purposes, though it
would possibly be better to put that in a separate place if it is needed
again or to debug using tests if possible.

Other changes:

  • Removed an invocation of rdflib.util.test from test_util.py. This
    seems like an attempt to invoke doctest however pytest takes care of
    that so this is not needed.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

@aucampia aucampia force-pushed the iwana-20220418T1523-remove_deadcode branch from 45c89b3 to 53bac26 Compare April 18, 2022 13:46
@aucampia
Copy link
Member Author

Probably best to only merge this after #1846 - but it is not entirely related and can be merged independently also.

@aucampia aucampia marked this pull request as ready for review April 18, 2022 14:04
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, this approach is redundant/unused legacy which is ripe for cleanup.

@aucampia aucampia force-pushed the iwana-20220418T1523-remove_deadcode branch from 53bac26 to fa28388 Compare April 19, 2022 07:16
This patch removes code from `rdflib/` that does not seem like it belongs
in `rdflib/`, most of it is related to doctest, some of it belongs in
`test/` and was moved to `test/test_misc/test_collection.py`, and yet
more of it seems to just be there for debugging purposes, though it
would possibly be better to put that in a separate place if it is needed
again or to debug using tests if possible.

Other changes:
- Removed an invocation of `rdflib.util.test` from `test_util.py`. This
  seems like an attempt to invoke doctest however pytest takes care of
  that so this is not needed.
@aucampia aucampia force-pushed the iwana-20220418T1523-remove_deadcode branch from fa28388 to 604abba Compare April 19, 2022 15:50
@aucampia aucampia merged commit e9f5c22 into RDFLib:master Apr 19, 2022
@aucampia aucampia deleted the iwana-20220418T1523-remove_deadcode branch May 7, 2022 09:30
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.

2 participants