File: test_stress2.py

package info (click to toggle)
easyprocess 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: python: 774; sh: 25; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest

from easyprocess import EasyProcess

# if run with coverage:
#        Fatal Python error: deallocating None


@pytest.mark.timeout(1000)
def test_timeout():  # pragma: no cover
    for x in range(1000):
        print("index=", x)
        assert EasyProcess("sleep 5").call(timeout=0.05).return_code != 0