Git Product home page Git Product logo

pytest-timeouts's People

Contributors

kamil1b avatar scony avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pytest-timeouts's Issues

don't set SIGALRM handler if there is no timeout

Is your feature request related to a problem? Please describe.
we have a timeout feature in our code that also uses ITIMER_REAL/SIGALRM. we wrote a test for this which conflicts with this package, even when we disable the timeout with pytestmark = [pytest.mark.execution_timeout(0)]

Describe the solution you'd like
if a timeout is 0.0, skip setting the signal handlers

Describe alternatives you've considered
๐Ÿคท

Additional context

AttributeError: 'Function' object has no attribute 'iter_markers'

[gw19] linux2 -- Python 2.7.11 /opt/python/x86_64/2.7.11-1/bin/python2.7
build/bdist.linux-x86_64/egg/pytest_timeouts.py:130: in pytest_runtest_setup
    ???
build/bdist.linux-x86_64/egg/pytest_timeouts.py:93: in fetch_timeout
    ???
build/bdist.linux-x86_64/egg/pytest_timeouts.py:145: in fetch_marker_timeout
    ???
E   AttributeError: 'Function' object has no attribute 'iter_markers'

platform linux2 -- Python 2.7.11, pytest-3.1.2, py-1.4.33, pluggy-0.4.0

Add test with `strict` option

strict option disable custom unregistered markers, test allow us prevent incorrect work of extension when strict will be active.

Typos in README.md file

Describe the bug
There are few typos in README.md, section "Usage" -> "pytest.ini setting":

[pytest]
setup_timeout = 2.5
execution-timeout = 2.01
teardown-timeout = 0

There are dashes instead of underscores in execution-timeout and teardown-timeout.

Expected behavior

[pytest]
setup_timeout = 2.5
execution_timeout = 2.01
teardown_timeout = 0

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.