GithubHelp home page GithubHelp logo

Comments (6)

boxed avatar boxed commented on June 15, 2024

Ah, yea, I forgot about that. Yes, it should handle this... I already store the time it took for a non-mutated test run so should be fairly trivial. It just makes tests_pass() a bit more complex since I can't have a simple blocking call.

from mutmut.

boxed avatar boxed commented on June 15, 2024

Huh. Seems check_call has a timeout option in Python 3.3+, I think I'll use that. It means you won't get infinite loop checking in lower python versions, but that seems like an ok tradeoff to me. With a warning message I think it's fine. What do you think?

from mutmut.

boxed avatar boxed commented on June 15, 2024

Oh, and I was thinking that the timeout should be baseline_time_elapsed * 10 to be very resistant against timing issues.

from mutmut.

asottile avatar asottile commented on June 15, 2024

Seems fine to me! The first three projects of mine I tried mutmut on hit this pretty quickly (each contained one of the state-machine-like loops). (another non-portable timeout mechanism is signal.alarm -- though the check_call timeout is probably good enough for what I'd want 👍)

I'm also willing to hack on this if you'd like

from mutmut.

boxed avatar boxed commented on June 15, 2024

I'd welcome a PR for sure. Should be just a matter of inserting an extra kwargs on the check_output call if the python version is > 3.3.

If you haven't looked at the source for mutmut yet you'll be surprised and delighted at how super tiny the code is I think :P

from mutmut.

boxed avatar boxed commented on June 15, 2024

It was super trivial and I had some time over, so I fixed this and another bug and rolled a new release. Let me know if it didn't work!

from mutmut.

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.