Skip to content

Instantly share code, notes, and snippets.

Created March 8, 2015 15:39
Show Gist options
  • Save anonymous/0ebc702fb7bd66d0b06e to your computer and use it in GitHub Desktop.
Save anonymous/0ebc702fb7bd66d0b06e to your computer and use it in GitHub Desktop.
Issue attachments for pydot/pydot-ng#84: https://github.com/pydot/pydot-ng/issues/84
test_add_style (__main__.TestGraphAPI) ... ok
test_attribute_with_implicit_value (__main__.TestGraphAPI) ... ERROR
test_create_simple_graph_with_node (__main__.TestGraphAPI) ... FAIL
test_executable_not_found_exception (__main__.TestGraphAPI) ... ok
test_graph_add_edge_argument_type (__main__.TestGraphAPI) ... ok
test_graph_add_node_argument_type (__main__.TestGraphAPI) ... ok
test_graph_add_subgraph_argument_type (__main__.TestGraphAPI) ... ok
test_graph_pickling (__main__.TestGraphAPI) ... ERROR
test_graph_with_shapefiles (__main__.TestGraphAPI) ... ok
test_graphviz_regression_tests (__main__.TestGraphAPI) ... a -> b[label="hi", decorate];
^
Expected "}" (at char 16), (line:2, col:7)
Warning: AI_icon was already in a rankset, ignored in cluster G
Warning: Biology_icon was already in a rankset, ignored in cluster G
Warning: Social_Networks_icon was already in a rankset, ignored in cluster G
Warning: Turing_icon was already in a rankset, ignored in cluster G
Warning: Rejewski_icon was already in a rankset, ignored in cluster G
Warning: Dertouzos_icon was already in a rankset, ignored in cluster G
Warning: Berners_Lee_icon was already in a rankset, ignored in cluster G
############Warning: using box for unknown shape DFDbox
##########Warning: layers not supported in jpe output
##############################################Warning: layers not supported in jpe output
#FAIL
test_keep_graph_type (__main__.TestGraphAPI) ... ok
test_keyword_node_id (__main__.TestGraphAPI) ... ok
test_keyword_node_id_to_string_no_attributes (__main__.TestGraphAPI) ... ok
test_keyword_node_id_to_string_with_attributes (__main__.TestGraphAPI) ... ok
test_multiple_graphs (__main__.TestGraphAPI) ... ok
test_my_regression_tests (__main__.TestGraphAPI) ... BAD(html2.dot)
##FAIL
test_names_of_a_thousand_nodes (__main__.TestGraphAPI) ... ok
test_numeric_node_id (__main__.TestGraphAPI) ... ok
test_quoted_node_id (__main__.TestGraphAPI) ... ok
test_quoted_node_id_to_string_no_attributes (__main__.TestGraphAPI) ... ok
test_quoting (__main__.TestGraphAPI) ... ERROR
test_subgraphs (__main__.TestGraphAPI) ... ERROR
test_unicode_ids (__main__.TestGraphAPI) ... ERROR
======================================================================
ERROR: test_attribute_with_implicit_value (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 81, in test_attribute_with_implicit_value
attrs = g.get_edges()[0].get_attributes()
AttributeError: 'NoneType' object has no attribute 'get_edges'
======================================================================
ERROR: test_graph_pickling (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 112, in test_graph_pickling
self.assertEqual( type(pickle.dumps(g)), str )
File "/usr/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/usr/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/usr/lib/python2.7/pickle.py", line 306, in save
rv = reduce(self.proto)
File "/usr/lib/python2.7/copy_reg.py", line 84, in _reduce_ex
dict = getstate()
File "/usr/lib/pymodules/python2.7/pydot.py", line 491, in __getstate__
for attr in self.attributes.keys():
AttributeError: 'Graph' object has no attribute 'attributes'
======================================================================
ERROR: test_quoting (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 375, in test_quoting
data = g.create( format='jpe' )
File "/usr/lib/pymodules/python2.7/pydot.py", line 1796, in create
status, stderr_output) )
InvocationException: Program terminated with status: 1. stderr follows: Warning: /tmp/tmpdfuUeh:2: ambiguous "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" splits into two names: "0123456789" and "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Error: /tmp/tmpdfuUeh:2: syntax error near line 2
context: test >>> [label=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ! <<< "#$%&'()*+,-./:;<=>?@[\]^_`{|}~
Warning: /tmp/tmpdfuUeh:2: string ran past end of line
======================================================================
ERROR: test_subgraphs (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 91, in test_subgraphs
self.assertEqual( g.get_subgraphs(), [] )
File "/usr/lib/pymodules/python2.7/pydot.py", line 1345, in get_subgraphs
return get_subgraph_list()
NameError: global name 'get_subgraph_list' is not defined
======================================================================
ERROR: test_unicode_ids (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 127, in test_unicode_ids
self.assertEqual( g.get_node(node1)[0].get_name(), node1 )
TypeError: 'Node' object does not support indexing
======================================================================
FAIL: test_create_simple_graph_with_node (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 74, in test_create_simple_graph_with_node
self.assertEqual( g.to_string(), 'digraph G {\nlegend [shape=box, label=mine];\n}\n' )
AssertionError: 'digraph G {\nlegend;\n}\n' != 'digraph G {\nlegend [shape=box, label=mine];\n}\n'
======================================================================
FAIL: test_graphviz_regression_tests (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 235, in test_graphviz_regression_tests
self._render_and_compare_dot_files( REGRESSION_TESTS_DIR )
File "pydot_unittest.py", line 264, in _render_and_compare_dot_files
self.assertEqual( parsed_data_hexdigest, original_data_hexdigest )
AssertionError: 'c3c7172197bd3b44181250f8f5174040b6c4ed518b05fcd3941d35eca227e23a' != 'c9be95d263258a504e23e21cfda5f643544c021f8b1c179fe76642c8b061e597'
======================================================================
FAIL: test_my_regression_tests (__main__.TestGraphAPI)
----------------------------------------------------------------------
Traceback (most recent call last):
File "pydot_unittest.py", line 230, in test_my_regression_tests
self._render_and_compare_dot_files( MY_REGRESSION_TESTS_DIR )
File "pydot_unittest.py", line 264, in _render_and_compare_dot_files
self.assertEqual( parsed_data_hexdigest, original_data_hexdigest )
AssertionError: '141dbbe8b1ef16f0e3b21ea4e8ac950331abd871da4b2b1eb9b2def67c0a13e2' != '2acd71f4d4d97f07298814b3ada64d43a3ed5db010d8dc8ea930dfee44cb4e4b'
----------------------------------------------------------------------
Ran 23 tests in 82.124s
FAILED (failures=3, errors=5)
BAD(html_labels.dot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment