8000 Merge pull request #6601 from matthew-brett/protect-against-locale · matplotlib/matplotlib@76fd818 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76fd818

Browse files
committed
Merge pull request #6601 from matthew-brett/protect-against-locale
BF: protect against locale in sphinext text Conflicts: lib/matplotlib/sphinxext/tests/test_tinypages.py backport minimal changes
1 parent f443b12 commit 76fd818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/sphinxext/tests/test_tinypages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ def plot_file(num):
8080
# Plot 13 shows close-figs in action
8181
assert_true(file_same(range_4, plot_file(13)))
8282
# 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:
8484
html_contents = fobj.read()
85-
assert_true('# Only a comment' in html_contents)
85+
assert_true(b'# Only a comment' in html_contents)

0 commit comments

Comments
 (0)
0