8000 Fix broken backported test · matplotlib/matplotlib@936315c · GitHub
[go: up one dir, main page]

Skip to content

Commit 936315c

Browse files
committed
Fix broken backported test
1 parent 8481bc5 commit 936315c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,7 @@ def tk_window_focus():
15021502
'matplotlib.tests.test_image',
15031503
'matplotlib.tests.test_legend',
15041504
'matplotlib.tests.test_lines',
1505+
'matplotlib.tests.test_marker',
15051506
'matplotlib.tests.test_mathtext',
15061507
'matplotlib.tests.test_mlab',
15071508
'matplotlib.tests.test_offsetbox',

lib/matplotlib/tests/test_marker.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import numpy as np
22
from matplotlib import markers
3-
4-
import pytest
5-
3+
from nose.tools import assert_raises
64

75
def test_markers_valid():
86
marker_style = markers.MarkerStyle()
@@ -16,5 +14,5 @@ def test_markers_invalid():
1614
marker_style = markers.MarkerStyle()
1715
mrk_array = np.array([[-0.5, 0, 1, 2, 3]])
1816
# Checking this does fail.
19-
with pytest.raises(ValueError):
17+
with assert_raises(ValueError):
2018
marker_style.set_marker(mrk_array)

0 commit comments

Comments
 (0)
0