8000 Show traceback on timeout (Python>=3.3) · mirwan/fluent-logger-python@2aa718b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2aa718b

Browse files
committed
Show traceback on timeout (Python>=3.3)
Python >=3.3 has faulthandler package[1]. It can be used to display traceback on signal. * [1]: https://docs.python.org/3.5/using/cmdline.html#envvar-PYTHONFAULTHANDLER
1 parent 974ea0e commit 2aa718b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ install:
1212
- "pip install -e ."
1313
- "pip install 'coverage>=3.7,<3.8' coveralls"
1414
script:
15-
- "python ./setup.py nosetests"
15+
- "PYTHONFAULTHANDLER=x timeout -sABRT 30s nosetests -vsd"
1616
after_success:
1717
- coveralls

0 commit comments

Comments
 (0)
0