summaryrefslogtreecommitdiff
path: root/rdflib/util.py
diff options
context:
space:
mode:
authorIwan Aucamp <aucampia@gmail.com>2022-04-18 15:41:20 +0200
committerIwan Aucamp <aucampia@gmail.com>2022-04-19 17:49:32 +0200
commit604abbaf510731ba964a09a7449e5d870abb3dd9 (patch)
tree1feb42c5c14059e9ed89441c87a6c9155e0f7631 /rdflib/util.py
parentc381e0e3b369369ef9e0b8bae1877a38b451f349 (diff)
downloadrdflib-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/util.py')
-rw-r--r--rdflib/util.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/rdflib/util.py b/rdflib/util.py
index f05b2b73..7be1674f 100644
--- a/rdflib/util.py
+++ b/rdflib/util.py
@@ -452,23 +452,3 @@ def _coalesce(*args: Optional[_AnyT]) -> Optional[_AnyT]:
if arg is not None:
return arg
return None
-
-
-def test():
- import doctest
-
- doctest.testmod()
-
-
-if __name__ == "__main__":
- # try to make the tests work outside of the time zone they were written in
- # import os, time
- # os.environ['TZ'] = 'US/Pacific'
- # try:
- # time.tzset()
- # except AttributeError, e:
- # print e
- # pass
- # tzset missing! see
- # http://mail.python.org/pipermail/python-dev/2003-April/034480.html
- test() # pragma: no cover