summaryrefslogtreecommitdiff
path: root/rdflib/extras/external_graph_libs.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdflib/extras/external_graph_libs.py')
-rw-r--r--rdflib/extras/external_graph_libs.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/rdflib/extras/external_graph_libs.py b/rdflib/extras/external_graph_libs.py
index 8423f4a0..10daf949 100644
--- a/rdflib/extras/external_graph_libs.py
+++ b/rdflib/extras/external_graph_libs.py
@@ -10,6 +10,10 @@ from __future__ import unicode_literals
Currently the following libraries are supported:
- networkx: MultiDiGraph, DiGraph, Graph
- graph_tool: Graph
+
+Doctests in this file are all skipped, as we can't run them conditionally if
+networkx or graph_tool are available and they would err otherwise.
+see ../../test/test_extras_external_graph_libs.py for conditional tests
"""
import logging
@@ -333,13 +337,10 @@ def rdflib_to_graphtool(
return g
-def main(): # pragma: no cover
+if __name__ == '__main__':
import sys
import logging.config
logging.basicConfig(level=logging.DEBUG)
import nose
nose.run(argv=[sys.argv[0], sys.argv[0], '-v', '--with-doctest'])
-
-if __name__ == '__main__':
- main()