summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-03-29 13:55:29 -0700
committerMicah Lee <micah@micahflee.com>2020-03-29 13:55:29 -0700
commit145021b2e52083fd91cfa9ee2562f05375c125cb (patch)
treef0a278afb598a7aa5edd542f64a06c1973a65451 /tests
parentc5b8938f1c79a131dab1630e675deb3cc3b5d39e (diff)
downloadonionshare-145021b2e52083fd91cfa9ee2562f05375c125cb.tar.gz
onionshare-145021b2e52083fd91cfa9ee2562f05375c125cb.zip
Enable stacktraces of segfaults when running tests
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index 200f526d..53d52725 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -1,4 +1,8 @@
import sys
+import faulthandler
+
+# Enable stacktraces of segmentation faults
+faulthandler.enable(file=sys.stdout)
# Force tests to look for resources in the source code tree
sys.onionshare_dev_mode = True