Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6f881a

Browse filesBrowse files
committed
Merge branch 'v1.5.x' into v2.0.x
2 parents 17a3a6d + 0cf4085 commit a6f881a
Copy full SHA for a6f881a

File tree

Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+10
-9
lines changed

‎lib/matplotlib/dates.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dates.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def _from_ordinalf(x, tz=None):
281281
elif dt.microsecond > 999990:
282282
dt += datetime.timedelta(microseconds=1e6 - dt.microsecond)
283283

284-
return dt
284+
return dt.astimezone(tz)
285285

286286

287287
# a version of _from_ordinalf that can operate on numpy arrays

‎lib/matplotlib/dviread.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dviread.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,11 @@ def _fnt_def(self, k, c, s, d, a, l, n):
387387
fontname = n[-l:].decode('ascii')
388388
tfm = _tfmfile(fontname)
389389
if tfm is None:
390-
raise FileNotFoundError("missing font metrics file: %s" % fontname)
390+
if six.PY2:
391+
error_class = OSError
392+
else:
393+
error_class = FileNotFoundError
394+
raise error_class("missing font metrics file: %s" % fontname)
391395
if c != 0 and tfm.checksum != 0 and c != tfm.checksum:
392396
raise ValueError('tfm checksum mismatch: %s'%n)
393397

‎lib/matplotlib/tests/test_cycles.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_cycles.py
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def test_colorcycle_basic():
2626
ax.legend(loc='upper left')
2727

2828

29-
@image_comparison(baseline_images=['marker_cycle'], remove_text=True,
30-
extensions=['png'])
29+
@image_comparison(baseline_images=['marker_cycle', 'marker_cycle'],
30+
remove_text=True, extensions=['png'])
3131
def test_marker_cycle():
3232
fig = plt.figure()
3333
ax = fig.add_subplot(111)
@@ -44,11 +44,6 @@ def test_marker_cycle():
4444
ax.plot(xs, ys, label='red2 dot', lw=4, ms=16)
4545
ax.legend(loc='upper left')
4646

47-
48-
# Reuse the image from test_marker_cycle()
49-
@image_comparison(baseline_images=['marker_cycle'], remove_text=True,
50-
extensions=['png'])
51-
def test_marker_cycle_keywords():
5247
fig = plt.figure()
5348
ax = fig.add_subplot(111)
5449
# Test keyword arguments, numpy arrays, and generic iterators

‎tools/test_triage.py

Copy file name to clipboardExpand all lines: tools/test_triage.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
R: Reject test. Copy the expected result to the source tree.
2525
"""
2626

27+
from __future__ import unicode_literals
28+
2729
import os
2830
import shutil
2931
import sys

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.