10000 TST: skip on py2.6 · matplotlib/matplotlib@2db55f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2db55f8

Browse files
committed
TST: skip on py2.6
1 parent 1acc296 commit 2db55f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_image.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
unicode_literals)
33

44
from matplotlib.externals import six
5+
import sys
56

67
import numpy as np
78

@@ -463,6 +464,10 @@ def test_minimized_rasterized():
463464
# in Postscript, the best way to detect it is to generate SVG
464465
# and then parse the output to make sure the two colorbar images
465466
# are the same size.
467+
if sys.version_info[:2] < (2, 7):
468+
raise nose.SkipTest("xml.etree.ElementTree.Element.iter "
469+
"added in py 2.7")
470+
466471
from xml.etree import ElementTree
467472

468473
np.random.seed(0)

0 commit comments

Comments
 (0)
0