diff options
author | Iwan Aucamp <aucampia@gmail.com> | 2022-04-18 15:41:20 +0200 |
---|---|---|
committer | Iwan Aucamp <aucampia@gmail.com> | 2022-04-19 17:49:32 +0200 |
commit | 604abbaf510731ba964a09a7449e5d870abb3dd9 (patch) | |
tree | 1feb42c5c14059e9ed89441c87a6c9155e0f7631 /rdflib/graph.py | |
parent | c381e0e3b369369ef9e0b8bae1877a38b451f349 (diff) | |
download | rdflib-604abbaf510731ba964a09a7449e5d870abb3dd9.tar.gz |
Remove testing and debug code from rdflib
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.
Diffstat (limited to 'rdflib/graph.py')
-rw-r--r-- | rdflib/graph.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rdflib/graph.py b/rdflib/graph.py index 2ae9a062..82ec8323 100644 --- a/rdflib/graph.py +++ b/rdflib/graph.py @@ -2470,13 +2470,3 @@ class BatchAddGraph(object): def __exit__(self, *exc): if exc[0] is None: self.graph.addN(self.batch) - - -def test(): - import doctest - - doctest.testmod() - - -if __name__ == "__main__": - test() |