Skip to content

Commit

Permalink
Approx the same exclusion but safer if Version is poor
Browse files Browse the repository at this point in the history
`Version` is poor if there is no `packaging` library available.  No one
is running SymPy dev between 1.11 and 1.12 anymore sense 1.12 is out so
I think this is safer.  Fixes #1268.
  • Loading branch information
cbm755 committed Jul 24, 2023
1 parent 2b18c30 commit 10548b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/@sym/bernoulli.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
%% Bernoulli numbers are:
%% @example
%% @group
%% @c doctest: +XFAIL_IF(pycall_sympy__ ('return Version(spver) < Version("1.12.dev")'))
%% @c doctest: +XFAIL_UNLESS(pycall_sympy__ ('return Version(spver) >= Version("1.12")'))
%% bernoulli (sym(0:6))
%% @result{} (sym) [1 1/2 1/6 0 -1/30 0 1/42] (1×7 matrix)
%% @end group
Expand All @@ -37,7 +37,7 @@
%% recent SymPy library, we use the definition with positive one half:
%% @example
%% @group
%% @c doctest: +XFAIL_IF(pycall_sympy__ ('return Version(spver) < Version("1.12.dev")'))
%% @c doctest: +XFAIL_UNLESS(pycall_sympy__ ('return Version(spver) >= Version("1.12")'))
%% bernoulli (sym(1))
%% @result{} (sym) 1/2
%% @end group
Expand Down

0 comments on commit 10548b9

Please sign in to comment.