summaryrefslogtreecommitdiff
path: root/pytest.ini
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-23 18:35:00 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-23 18:35:00 -0700
commit6d9d14a4847a9ac769f6cab8b6af985b94378826 (patch)
treebad213068a5d5f545543a43749852d30d30c63af /pytest.ini
parentd2dbb33ae903de1e189312171afa86d8643ca271 (diff)
downloadparamiko-6d9d14a4847a9ac769f6cab8b6af985b94378826.tar.gz
Use pytest-timeout, configured via pytest.ini
Diffstat (limited to 'pytest.ini')
-rw-r--r--pytest.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini
new file mode 100644
index 00000000..af021870
--- /dev/null
+++ b/pytest.ini
@@ -0,0 +1,7 @@
+[pytest]
+# 10 seconds is more time than nearly any test ought to take and almost surely
+# indicates a full-on deadlock; but let's make it 30s just to be sure.
+timeout = 30
+# Sadly the signal method of pytest-timeout does not appear to help, at least
+# for the SFTP hangs encountered developing issue #1100.
+timeout_method = thread