-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
83985b2
commit 4dbac3b
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
tests/next_tests/regression_tests/embedded_tests/test_domain_pickle.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pickle | ||
|
||
from gt4py.next import common | ||
|
||
I = common.Dimension("I") | ||
J = common.Dimension("J") | ||
|
||
def test_domain_pickle_after_slice(): | ||
domain = common.domain(((I, (2, 4)), (J, (3, 5)))) | ||
# use slice_at to populate cached property | ||
domain.slice_at[2:5, 5:7] | ||
|
||
pickle.dumps(domain) |