8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f443b12 commit 76fd818Copy full SHA for 76fd818
lib/matplotlib/sphinxext/tests/test_tinypages.py
@@ -80,6 +80,6 @@ def plot_file(num):
80
# Plot 13 shows close-figs in action
81
assert_true(file_same(range_4, plot_file(13)))
82
# Plot 14 has included source
83
- with open(pjoin(self.html_dir, 'some_plots.html'), 'rt') as fobj:
+ with open(pjoin(self.html_dir, 'some_plots.html'), 'rb') as fobj:
84
html_contents = fobj.read()
85
- assert_true('# Only a comment' in html_contents)
+ assert_true(b'# Only a comment' in html_contents)
0 commit comments