Created
September 26, 2013 20:40
-
-
Save anonymous/6720219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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