Skip to content

Commit

Permalink
TST trigger the bug of #425 in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreglaser committed Jun 15, 2021
1 parent 6e0f571 commit 8a1578b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cloudpickle_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ def __reduce__(self):
assert hasattr(depickled_mod.__builtins__, "abs")
assert depickled_mod.f(-1) == 1

# Additional check testing that the issue #425 is fixed
assert mod.f(-1) == 1

def test_load_dynamic_module_in_grandchild_process(self):
# Make sure that when loaded, a dynamic module preserves its dynamic
# property. Otherwise, this will lead to an ImportError if pickled in
Expand Down

0 comments on commit 8a1578b

Please sign in to comment.