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

Skip to content

Commit 4630911

Browse files
authored
!U fix the test to check the error is not raised
1 parent 4e08061 commit 4630911

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/matplotlib/tests/test_pickle.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,12 @@ def test_transform():
273273

274274
def test_rrulewrapper():
275275
r = rrulewrapper(2)
276-
with assert_raises(RecursionError):
276+
try:
277277
pickle.loads(pickle.dumps(r))
278-
278+
except RecursionError:
279+
print('rrulewrapper pickling test failed')
280+
raise
281+
279282

280283
if __name__ == '__main__':
281284
import nose

0 commit comments

Comments
 (0)