Also: - Drop upstreamed patches: -is, -source-target, -union-find, -cb-iterable, -iterable, and -dict-iteration. - Unbundle fonts from the documentation. - Reenable the tests. - Add -test patch.
43 lines
1.8 KiB
Diff
43 lines
1.8 KiB
Diff
--- networkx/readwrite/tests/test_gexf.py.orig 2019-10-16 20:03:56.000000000 -0600
|
|
+++ networkx/readwrite/tests/test_gexf.py 2019-10-30 11:31:05.799922383 -0600
|
|
@@ -409,17 +409,17 @@ gexf.net/1.2draft http://www.gexf.net/1.
|
|
nx.set_node_attributes(G, {n: n for n in numpy.arange(4)}, 'number')
|
|
G[0][1]['edge-number'] = numpy.float64(1.1)
|
|
|
|
- expected = """<gexf version="1.2" xmlns="http://www.gexf.net/1.2draft"\
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation\
|
|
-="http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd">
|
|
+ expected = """<gexf xmlns="http://www.gexf.net/1.2draft" xmlns:xsi="\
|
|
+http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="\
|
|
+http://www.gexf.net/1.2draft http://www.gexf.net/1.2draft/gexf.xsd" version="1.2">
|
|
<meta lastmodifieddate="{}">
|
|
<creator>NetworkX {}</creator>
|
|
</meta>
|
|
<graph defaultedgetype="undirected" mode="static" name="">
|
|
- <attributes class="edge" mode="static">
|
|
+ <attributes mode="static" class="edge">
|
|
<attribute id="1" title="edge-number" type="float" />
|
|
</attributes>
|
|
- <attributes class="node" mode="static">
|
|
+ <attributes mode="static" class="node">
|
|
<attribute id="0" title="number" type="int" />
|
|
</attributes>
|
|
<nodes>
|
|
@@ -445,13 +445,13 @@ gexf.net/1.2draft http://www.gexf.net/1.
|
|
</node>
|
|
</nodes>
|
|
<edges>
|
|
- <edge id="0" source="0" target="1">
|
|
+ <edge source="0" target="1" id="0">
|
|
<attvalues>
|
|
<attvalue for="1" value="1.1" />
|
|
</attvalues>
|
|
</edge>
|
|
- <edge id="1" source="1" target="2" />
|
|
- <edge id="2" source="2" target="3" />
|
|
+ <edge source="1" target="2" id="1" />
|
|
+ <edge source="2" target="3" id="2" />
|
|
</edges>
|
|
</graph>
|
|
</gexf>""".format(time.strftime('%Y-%m-%d'), nx.__version__)
|