Merge pull request #531 from mgorny/timeout

This commit is contained in:
Bruno Oliveira
2020-07-24 15:47:20 -03:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -331,7 +331,7 @@ class TestDistribution:
time.sleep(10)
"""
)
child = testdir.spawn_pytest("-n1 -v")
child = testdir.spawn_pytest("-n1 -v", expect_timeout=30.0)
child.expect(".*test_sleep.*")
child.kill(2) # keyboard interrupt
child.expect(".*KeyboardInterrupt.*")