Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2013 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6720219 to your computer and use it in GitHub Desktop.
Save anonymous/6720219 to your computer and use it in GitHub Desktop.
diff --git a/scipy/interpolate/tests/test_fitpack.py b/scipy/interpolate/tests/test_fitpack.py
index f4d75ba..e6aaabd 100644
--- a/scipy/interpolate/tests/test_fitpack.py
+++ b/scipy/interpolate/tests/test_fitpack.py
@@ -325,8 +325,12 @@ class TestSplder(object):
def test_kink(self):
# Should refuse to differentiate splines with kinks
- spl2 = insert(0.5, self.spl, m=2)
- splder(spl2, 2) # Should work
+ try:
+ spl2 = insert(0.5, self.spl, m=2)
+ splder(spl2, 2) # Should work
+ except:
+ np.savez('dump-new-bad.npz', tck=self.spl, tck2=spl2)
+ raise
assert_raises(ValueError, splder, spl2, 3)
spl2 = insert(0.5, self.spl, m=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment