diff options
author | Micah Lee <micah@micahflee.com> | 2020-03-29 13:55:29 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-03-29 13:55:29 -0700 |
commit | 145021b2e52083fd91cfa9ee2562f05375c125cb (patch) | |
tree | f0a278afb598a7aa5edd542f64a06c1973a65451 /tests | |
parent | c5b8938f1c79a131dab1630e675deb3cc3b5d39e (diff) | |
download | onionshare-145021b2e52083fd91cfa9ee2562f05375c125cb.tar.gz onionshare-145021b2e52083fd91cfa9ee2562f05375c125cb.zip |
Enable stacktraces of segfaults when running tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 4 |
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 |