Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
c2eebd8e
Commit
c2eebd8e
authored
4 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Skipp broken tests for old sympy versions
parent
b7a7a3f0
No related branches found
No related tags found
1 merge request
!191
Fix deprecation warning for Sympy 1.7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pystencils_tests/test_astnodes.py
+10
-0
10 additions, 0 deletions
pystencils_tests/test_astnodes.py
pystencils_tests/test_jupyter_extensions.ipynb
+9
-9
9 additions, 9 deletions
pystencils_tests/test_jupyter_extensions.ipynb
with
19 additions
and
9 deletions
pystencils_tests/test_astnodes.py
+
10
−
0
View file @
c2eebd8e
...
...
@@ -5,12 +5,20 @@ import pystencils as ps
from
pystencils
import
Assignment
from
pystencils.astnodes
import
Block
,
LoopOverCoordinate
,
SkipIteration
,
SympyAssignment
sympy_numeric_version
=
[
int
(
x
,
10
)
for
x
in
sp
.
__version__
.
split
(
'
.
'
)]
if
len
(
sympy_numeric_version
)
<
3
:
sympy_numeric_version
.
append
(
0
)
sympy_numeric_version
.
reverse
()
sympy_version
=
sum
(
x
*
(
100
**
i
)
for
i
,
x
in
enumerate
(
sympy_numeric_version
))
dst
=
ps
.
fields
(
'
dst(8): double[2D]
'
)
s
=
sp
.
symbols
(
'
s_:8
'
)
x
=
sp
.
symbols
(
'
x
'
)
y
=
sp
.
symbols
(
'
y
'
)
@pytest.mark.skipif
(
sympy_version
<
10501
,
reason
=
"
Old Sympy Versions behave differently which wont be supported in the near future
"
)
def
test_kernel_function
():
assignments
=
[
Assignment
(
dst
[
0
,
0
](
0
),
s
[
0
]),
...
...
@@ -36,6 +44,8 @@ def test_skip_iteration():
assert
skipped
.
undefined_symbols
==
set
()
@pytest.mark.skipif
(
sympy_version
<
10501
,
reason
=
"
Old Sympy Versions behave differently which wont be supported in the near future
"
)
def
test_block
():
assignments
=
[
Assignment
(
dst
[
0
,
0
](
0
),
s
[
0
]),
...
...
This diff is collapsed.
Click to expand it.
pystencils_tests/test_jupyter_extensions.ipynb
+
9
−
9
View file @
c2eebd8e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment