Skip to content

Commit

Permalink
Add Python faulthandler()
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat2004 committed Jan 24, 2020
1 parent cfc80bb commit 2e387e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
script:
- ./opencvDirectInstall.sh
- ffmpeg -version
- python3 extras/opencv_test.py
- PYTHONFAULTHANDLER=1 python3 extras/opencv_test.py
python: 3.7

- name: xenial-ml
Expand All @@ -41,7 +41,7 @@ jobs:
- conda info -a
- ./opencvDirectInstall.sh
- ffmpeg -version
- python extras/opencv_test.py
- PYTHONFAULTHANDLER=1 python extras/opencv_test.py
python: 3.7

- name: bionic-basic
Expand All @@ -59,7 +59,7 @@ jobs:
script:
- ./opencvDirectInstall.sh
- ffmpeg -version
- python3 extras/opencv_test.py
- PYTHONFAULTHANDLER=1 python3 extras/opencv_test.py
python: 3.7

- name: bionic-ml
Expand All @@ -81,7 +81,7 @@ jobs:
- conda info -a
- ./opencvDirectInstall.sh
- ffmpeg -version
- python extras/opencv_test.py
- PYTHONFAULTHANDLER=1 python extras/opencv_test.py
python: 3.7

before_install:
Expand Down
3 changes: 3 additions & 0 deletions extras/opencv_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import cv2
import pathlib
import traceback, sys
import faulthandler

faulthandler.enable()

image_name = "github.png"
video_name = "test.mp4"
Expand Down

0 comments on commit 2e387e3

Please sign in to comment.