Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 97ba7b0

Browse files
committed
Don't use 'with assert_raises', it doesn't work on Python 2.6
1 parent 3f032d9 commit 97ba7b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_path.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
def test_readonly_path():
55
path = Path.unit_circle()
66

7-
with assert_raises(AttributeError):
7+
def modify_vertices():
88
path.vertices = path.vertices * 2.0
9+
10+
assert_raises(AttributeError, modify_vertices)

0 commit comments

Comments
 (0)