Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fails under Python 3.10 on MacOS #6

Open
jdevera opened this issue Oct 8, 2022 · 1 comment
Open

Test fails under Python 3.10 on MacOS #6

jdevera opened this issue Oct 8, 2022 · 1 comment

Comments

@jdevera
Copy link

jdevera commented Oct 8, 2022

    def test_produces_a_side_effect_per_item_in_parallel():
        """
        Mocks can't be pickled and only memory-shared objects which are global can be used in multiprocessing
        """
    
        _123_pype().do(side_effect, now=True, workers=2)
    
>       assert PARALLEL_SUM.value == sum(_123)
E       assert 0 == 6
E        +  where 0 = <Synchronized wrapper for c_int(0)>.value
E        +  and   6 = sum((1, 2, 3))

unittests/test_non_empty_pipe.py:143: AssertionError

However, it passes on a Linux box. No idea what it could be but thought I'd let you know.

@JoseLlarena
Copy link
Owner

Thanks, will look into it shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants