File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
import pytest
4
4
5
5
from formulaic .parser .types import Factor , Term
6
- from formulaic .utils .calculus import differentiate_term , _differentiate_factors
6
+ from formulaic .utils .calculus import _differentiate_factors , differentiate_term
7
7
8
8
9
9
def test_differentiate_term ():
@@ -30,5 +30,8 @@ def test__differentiate_factors():
30
30
31
31
assert _differentiate_factors (t .factors , "a" , use_sympy = True ) == {"(log(a) + 1)" }
32
32
33
- with pytest .raises (RuntimeError , match = re .escape ("Cannot differentiate non-trivial factors without `sympy`." )):
33
+ with pytest .raises (
34
+ RuntimeError ,
35
+ match = re .escape ("Cannot differentiate non-trivial factors without `sympy`." ),
36
+ ):
34
37
_differentiate_factors (t .factors , "a" , use_sympy = False )
You can’t perform that action at this time.
0 commit comments