Giter VIP home page Giter VIP logo

Comments (6)

laike9m avatar laike9m commented on May 20, 2024

Ping?

from pytest-parallel.

laike9m avatar laike9m commented on May 20, 2024

Related https://bugs.python.org/issue33884

from pytest-parallel.

francbartoli avatar francbartoli commented on May 20, 2024

Confirm the issue also with pytest-parallel==0.0.10 but exclusively on Darwin. It is still safe on linux-based OS

from pytest-parallel.

max-block avatar max-block commented on May 20, 2024

I have the same problem on this platform:
platform darwin -- Python 3.8.1, pytest-5.3.5, py-1.8.1, pluggy-0.13.1

from pytest-parallel.

blueyed avatar blueyed commented on May 20, 2024

From https://docs.python.org/3/library/multiprocessing.html:

Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.

So you could set it manually to "forkserver" I guess.

import multiprocessing as mp; mp.set_start_method("forkserver")

Apart from that pytest-xdist might be a good alternative for executing tests in parallel.

from pytest-parallel.

kevlened avatar kevlened commented on May 20, 2024

I force fork on macOS in 0.1.0, which fixes the problem. This sacrifices safety to keep usability, so I've added a notice to the README.

from pytest-parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.