Commit 729e202
authored
Avoid sympification in is-None checks (#2945)
* Avoid sympification in is-None checks
Don't sympify if we just need to test some expression to be (not) None.
Saves some time for expensive-to-sympify expressions like big piecewise constructs for splines.
* pytest-rerunfailures!=16.01 parent 1b88ab4 commit 729e202
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3066 | 3066 | | |
3067 | 3067 | | |
3068 | 3068 | | |
3069 | | - | |
| 3069 | + | |
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
| |||
3080 | 3080 | | |
3081 | 3081 | | |
3082 | 3082 | | |
3083 | | - | |
| 3083 | + | |
3084 | 3084 | | |
3085 | 3085 | | |
3086 | 3086 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments