Skip to content

Commit ffd8cf8

Browse files
authored
Merge pull request #2730 from yarikoptic/bf-networkx-graph-compat
BF: provide "" into target graph dot depending on networkx version
2 parents d1a9e96 + 456b6f7 commit ffd8cf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nipype/pipeline/engine/tests/test_engine.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -484,9 +484,12 @@ def test_deep_nested_write_graph_runs(tmpdir):
484484
except OSError:
485485
pass
486486

487+
import networkx
488+
# Format of the graph has slightly changed
489+
graph_str = '""' if int(networkx.__version__.split('.')[0]) == 1 else ''
487490

488491
# examples of dot files used in the following test
489-
dotfile_orig = ['strict digraph {\n',
492+
dotfile_orig = ['strict digraph ' + graph_str + ' {\n',
490493
'"mod1 (engine)";\n',
491494
'"mod2 (engine)";\n',
492495
'"mod1 (engine)" -> "mod2 (engine)";\n',

0 commit comments

Comments
 (0)