Show More
@@ -51,7 +51,7 b' def test_figure_to_svg():' | |||||
51 | ax.plot([1,2,3]) |
|
51 | ax.plot([1,2,3]) | |
52 | plt.draw() |
|
52 | plt.draw() | |
53 | svg = pt.print_figure(fig, 'svg')[:100].lower() |
|
53 | svg = pt.print_figure(fig, 'svg')[:100].lower() | |
54 | nt.assert_in('doctype svg', svg) |
|
54 | nt.assert_in(b'doctype svg', svg) | |
55 |
|
55 | |||
56 |
|
56 | |||
57 | def test_import_pylab(): |
|
57 | def test_import_pylab(): |
@@ -39,7 +39,7 b' def citation2latex(s):' | |||||
39 |
|
39 | |||
40 | tree = html.fragment_fromstring(s, create_parent='div') |
|
40 | tree = html.fragment_fromstring(s, create_parent='div') | |
41 | _process_node_cite(tree) |
|
41 | _process_node_cite(tree) | |
42 | s = html.tostring(tree) |
|
42 | s = html.tostring(tree, encoding='unicode') | |
43 | if s.endswith('</div>'): |
|
43 | if s.endswith('</div>'): | |
44 | s = s[:-6] |
|
44 | s = s[:-6] | |
45 | if s.startswith('<div>'): |
|
45 | if s.startswith('<div>'): |
General Comments 0
You need to be logged in to leave comments.
Login now