File: test_stress.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 (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from easyprocess import EasyProcess


def test_call():
    for x in range(1000):
        # test for:
        # OSError exception:[Errno 24] Too many open files
        print("index=", x)
        assert EasyProcess("echo hi").call().return_code == 0


#    def test_start(self):
#        for x in range(1000):
#            print('index=', x)
#            EasyProcess('echo hi').start()