File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/matplotlib/sphinxext/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ def plot_file(num):
80
80
# Plot 13 shows close-figs in action
81
81
assert_true (file_same (range_4 , plot_file (13 )))
82
82
# Plot 14 has included source
83
- with open (pjoin (self .html_dir , 'some_plots.html' ), 'rt ' ) as fobj :
83
+ with open (pjoin (self .html_dir , 'some_plots.html' ), 'rb ' ) as fobj :
84
84
html_contents = fobj .read ()
85
- assert_true ('# Only a comment' in html_contents )
85
+ assert_true (b '# Only a comment' in html_contents )
86
86
# check plot defined in external file.
87
87
assert_true (file_same (range_4 , pjoin (self .html_dir , 'range4.png' )))
88
88
assert_true (file_same (range_6 , pjoin (self .html_dir , 'range6.png' )))
89
89
# check if figure caption made it into html file
90
- assert_true ('This is the caption for plot 15.' in html_contents )
90
+ assert_true (b 'This is the caption for plot 15.' in html_contents )
You can’t perform that action at this time.
0 commit comments